diff 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
line wrap: on
line diff
--- a/toys.h	Sat Jan 19 17:08:39 2008 -0600
+++ b/toys.h	Sat Jan 19 17:43:27 2008 -0600
@@ -41,6 +41,12 @@
 #include "toys/e2fs.h"
 #include "toys/toylist.h"
 
+// Get list of function prototypes for all enabled command_main() functions.
+
+#define NEWTOY(name, opts, flags) void name##_main(void);
+#define OLDTOY(name, oldname, opts, flags)
+#include "generated/newtoys.h"
+
 // These live in main.c
 
 struct toy_list *toy_find(char *name);