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/sleep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toys/sleep.c') diff --git a/toys/sleep.c b/toys/sleep.c index 55a6b977..7052ecaa 100644 --- a/toys/sleep.c +++ b/toys/sleep.c @@ -19,6 +19,10 @@ config SLEEP #include "toys.h" +DEFINE_GLOBALS( + long seconds; +) + void sleep_main(void) { toys.exitval = sleep(atol(*toys.optargs)); -- cgit v1.2.3