Mercurial > hg > toybox
diff main.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 | 571623c6765d |
children | 7cb15eae1664 |
line wrap: on
line diff
--- a/main.c Sat Jan 19 17:08:39 2008 -0600 +++ b/main.c Sat Jan 19 17:43:27 2008 -0600 @@ -14,7 +14,7 @@ #define OLDTOY(name, oldname, opts, flags) {#name, oldname##_main, opts, flags}, struct toy_list toy_list[] = { -#include "toys/toylist.h" +#include "generated/newtoys.h" }; #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list)) @@ -59,7 +59,7 @@ #define NEWTOY(name, opts, flags) opts || #define OLDTOY(name, oldname, opts, flags) opts || static const int NEED_OPTIONS = -#include "toys/toylist.h" +#include "generated/newtoys.h" 0; // Ends the opts || opts || opts... void toy_init(struct toy_list *which, char *argv[])