Mercurial > hg > toybox
diff toys/help.c @ 234:163498bf547b
Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 19 Jan 2008 17:43:27 -0600 |
parents | d4176f3f3835 |
children | cb3c3c85b966 |
line wrap: on
line diff
--- a/toys/help.c Sat Jan 19 17:08:39 2008 -0600 +++ b/toys/help.c Sat Jan 19 17:43:27 2008 -0600 @@ -6,6 +6,8 @@ * * Not in SUSv3, but exists as a bash builtin. +USE_HELP(NEWTOY(help, "<1", TOYFLAG_BIN)) + config HELP bool "help" default y @@ -31,7 +33,7 @@ #define NEWTOY(name,opt,flags) help_##name "\0" #define OLDTOY(name,oldname,opts,flags) "\xff" #oldname "\0" static char *help_data = -#include "toys/toylist.h" +#include "generated/newtoys.h" ; void help_main(void)