diff options
author | Rob Landley <rob@landley.net> | 2008-01-20 17:25:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-01-20 17:25:44 -0600 |
commit | b1aaba1fc8176ac0b7c202a664d2554aa0967116 (patch) | |
tree | 7bbd14f5dd2413a6b913ea04b0bdf746a2d5b1fb /toys/sed.c | |
parent | eb9b8da0698aacd14f5aa0879d2a8e390c0c6c13 (diff) | |
download | toybox-b1aaba1fc8176ac0b7c202a664d2554aa0967116.tar.gz |
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
Diffstat (limited to 'toys/sed.c')
-rw-r--r-- | toys/sed.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -21,6 +21,12 @@ config SED #include "toys.h" #include "lib/xregcomp.h" +DEFINE_GLOBALS( + struct arg_list *commands; +) + +#define TT this.sed + struct sed_command { // Doubly linked list of commands. struct sed_command *next, *prev; @@ -46,8 +52,6 @@ struct sed_command { char command; }; -#define TT toy.sed - void sed_main(void) { struct arg_list *test; |