Mail Archives: geda-user/2015/08/30/09:14:06
Markus Hitter (mah AT jump-ing DOT de) [via geda-user AT delorie DOT com] wrote:
> While stepping through the sources, I find the files command.c and command.h. command.h defines these two functions:
>
> void ExecuteUserCommand (char *);
> void CallActionProc (char *action, char **arg, int argc);
>
> However, neither of them is used anywhere, grep'ing for them brings up nothing but the hit in command.c/.h its self. Looking at the source, these two files apparently implement a vi-like interface:
>
> Message ("following commands are supported:\n"
> " Command() execute an action command (too numerous to list)\n"
> " see the manual for the list of action commands\n"
> " h display this help message\n"
> " l [file] load layout\n"
> " le [file] load element to buffer\n"
> " m [file] load layout to buffer (merge)\n"
> " q quits the application\n"
> " q! quits without save warning\n"
> " rn [file] read in a net-list file\n"
> " s [file] save layout\n"
> " w [file] save layout\n"
> " wq [file] save layout and quit\n");
>
> Anybody aware of where or how this is used? Any user of this interface? If unused I'd remove it to remove one level of obfuscation.
>
> Tracked at https://bugs.launchpad.net/pcb/+bug/1490264
>
>
> Markus
>
>
Hi Markus,
I confirm no invoking or implementation of above mentioned functions.
These seem to stem from the import of the GTK hid by Bill Wilson in a
commit by Dan McMahill on 12-03-2005 (3/12/2005 3:17 am).
Kind regards,
Bert Timmerman.
- Raw text -