Thanks for the additional details.
Here is my first pass - something like this - lots of details to be worked out.
char *g_cmdline;
int g_flags;
// when called the cmdline has already been added to history
// called by EditFile() and EditThisFile()
int sys_editfile(char *cmdline, int flags) {
...
g_cmdline = cmdline;
g_flags = flags;
ExecHook(EVENT_ON_EDITFILE);
cmdline = g_cmdline;
flags = g_flags;
//continue processing
...
// just before exiting:
g_cmdline = NULL;
g_flags = 0;
}
//similar code for InsertFile()
void GetEditFile(char *fn, int flags) {
fn = g_cmdline;
flags = g_flags;
}
void SetEditFile(char *fn, int flags) {
g_cmdline = fn;
g_flags = flags;
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
semware+u...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/semware/000601dc26e4%24b3a05360%241ae0fa20%24%40ecarlo.nl.