Mercurial > hg > toybox
comparison toys/toysh.c @ 237:7cb15eae1664
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.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jan 2008 17:25:44 -0600 |
parents | 163498bf547b |
children | 951110c37fee |
comparison
equal
deleted
inserted
replaced
236:6b292ee780ab | 237:7cb15eae1664 |
---|---|
168 -L Cancel previous -P and restore default behavior. | 168 -L Cancel previous -P and restore default behavior. |
169 */ | 169 */ |
170 | 170 |
171 #include "toys.h" | 171 #include "toys.h" |
172 | 172 |
173 #define TT toy.toysh | 173 DEFINE_GLOBALS( |
174 char *command; | |
175 ) | |
176 | |
177 #define TT this.toysh | |
174 | 178 |
175 // A single executable, its arguments, and other information we know about it. | 179 // A single executable, its arguments, and other information we know about it. |
176 #define TOYSH_FLAG_EXIT 1 | 180 #define TOYSH_FLAG_EXIT 1 |
177 #define TOYSH_FLAG_SUSPEND 2 | 181 #define TOYSH_FLAG_SUSPEND 2 |
178 #define TOYSH_FLAG_PIPE 4 | 182 #define TOYSH_FLAG_PIPE 4 |