aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-01-20 17:25:44 -0600
committerRob Landley <rob@landley.net>2008-01-20 17:25:44 -0600
commitb1aaba1fc8176ac0b7c202a664d2554aa0967116 (patch)
tree7bbd14f5dd2413a6b913ea04b0bdf746a2d5b1fb /toys/toysh.c
parenteb9b8da0698aacd14f5aa0879d2a8e390c0c6c13 (diff)
downloadtoybox-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/toysh.c')
-rw-r--r--toys/toysh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/toys/toysh.c b/toys/toysh.c
index 15c78116..e2800681 100644
--- a/toys/toysh.c
+++ b/toys/toysh.c
@@ -170,7 +170,11 @@ config CD_P
#include "toys.h"
-#define TT toy.toysh
+DEFINE_GLOBALS(
+ char *command;
+)
+
+#define TT this.toysh
// A single executable, its arguments, and other information we know about it.
#define TOYSH_FLAG_EXIT 1