Mercurial > hg > toybox
comparison toys.h @ 1502:84922376d15c draft
Have OLDTOY emit (redundant) function prototype so single.sh can build OLDTOY standalone (if it has its own config symbol).
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 27 Sep 2014 19:59:28 -0500 |
parents | d1411369baa7 |
children | 83cac28515a3 |
comparison
equal
deleted
inserted
replaced
1501:c51a4dbe5db7 | 1502:84922376d15c |
---|---|
73 #include "toys/e2fs.h" | 73 #include "toys/e2fs.h" |
74 | 74 |
75 // Get list of function prototypes for all enabled command_main() functions. | 75 // Get list of function prototypes for all enabled command_main() functions. |
76 | 76 |
77 #define NEWTOY(name, opts, flags) void name##_main(void); | 77 #define NEWTOY(name, opts, flags) void name##_main(void); |
78 #define OLDTOY(name, oldname, opts, flags) | 78 #define OLDTOY(name, oldname, opts, flags) void oldname##_main(void); |
79 #include "generated/newtoys.h" | 79 #include "generated/newtoys.h" |
80 #include "generated/oldtoys.h" | 80 #include "generated/oldtoys.h" |
81 #include "generated/flags.h" | 81 #include "generated/flags.h" |
82 #include "generated/globals.h" | 82 #include "generated/globals.h" |
83 | 83 |