Mercurial > hg > toybox
comparison main.c @ 88:021fe1a818c3
Small cleanup to prepare for cross-compile friendly make install.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 31 Jan 2007 13:31:19 -0500 |
parents | 329e2b37d0e1 |
children | cc0a6789f92a |
comparison
equal
deleted
inserted
replaced
87:44c7bcd02db6 | 88:021fe1a818c3 |
---|---|
6 | 6 |
7 #include "toys.h" | 7 #include "toys.h" |
8 | 8 |
9 // Populate toy_list[]. | 9 // Populate toy_list[]. |
10 | 10 |
11 #undef NEWTOY | |
12 #undef OLDTOY | |
13 #define NEWTOY(name, opts, flags) {#name, name##_main, opts, flags}, | |
14 #define OLDTOY(name, oldname, opts, flags) {#name, oldname##_main, opts, flags}, | |
15 | |
11 struct toy_list toy_list[] = { | 16 struct toy_list toy_list[] = { |
12 #define FROM_MAIN | |
13 #include "toys/toylist.h" | 17 #include "toys/toylist.h" |
14 }; | 18 }; |
15 | 19 |
16 #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list)) | 20 #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list)) |
17 | 21 |