From b1aaba1fc8176ac0b7c202a664d2554aa0967116 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 20 Jan 2008 17:25:44 -0600 Subject: 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. --- toys/oneit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'toys/oneit.c') diff --git a/toys/oneit.c b/toys/oneit.c index 991eba11..4c36491f 100644 --- a/toys/oneit.c +++ b/toys/oneit.c @@ -29,6 +29,12 @@ config ONEIT #include "toys.h" #include +DEFINE_GLOBALS( + char *console; +) + +#define TT this.oneit + // The minimum amount of work necessary to get ctrl-c and such to work is: // // - Fork a child (PID 1 is special: can't exit, has various signals blocked). @@ -39,7 +45,6 @@ config ONEIT // PID 1 then reaps zombies until the child process it spawned exits, at which // point it calls sync() and reboot(). I could stick a kill -1 in there. -#define TT toy.oneit void oneit_main(void) { -- cgit v1.2.3