Mercurial > hg > toybox
comparison toys.h @ 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 | 7cb15eae1664 |
comparison
equal
deleted
inserted
replaced
233:d4176f3f3835 | 234:163498bf547b |
---|---|
39 | 39 |
40 #include "lib/lib.h" | 40 #include "lib/lib.h" |
41 #include "toys/e2fs.h" | 41 #include "toys/e2fs.h" |
42 #include "toys/toylist.h" | 42 #include "toys/toylist.h" |
43 | 43 |
44 // Get list of function prototypes for all enabled command_main() functions. | |
45 | |
46 #define NEWTOY(name, opts, flags) void name##_main(void); | |
47 #define OLDTOY(name, oldname, opts, flags) | |
48 #include "generated/newtoys.h" | |
49 | |
44 // These live in main.c | 50 // These live in main.c |
45 | 51 |
46 struct toy_list *toy_find(char *name); | 52 struct toy_list *toy_find(char *name); |
47 void toy_init(struct toy_list *which, char *argv[]); | 53 void toy_init(struct toy_list *which, char *argv[]); |
48 void toy_exec(char *argv[]); | 54 void toy_exec(char *argv[]); |