Code: Select all
typedef struct {
char *name;
char *flags;
Function func;
char *funcname;
} cmd_t;
"name" is the command name bound to the TCL interpreter.
"flags" are the flags required to trigger the callback "func".
But what purpose does "funcname" serve?
Can you see the string defined there anywhere?
After a grep over all files all I could find about it was in add_builtins/rem_builtins:
Code: Select all
egg_snprintf(p, sizeof p, "*%s:%s", tl->name,
cc[i].funcname ? cc[i].funcname : cc[i].name);
Regards,
Kappa