comparison main.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 4121825716b8
comparison
equal deleted inserted replaced
236:6b292ee780ab 237:7cb15eae1664
20 #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list)) 20 #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list))
21 21
22 // global context for this applet. 22 // global context for this applet.
23 23
24 struct toy_context toys; 24 struct toy_context toys;
25 union toy_union toy; 25 union global_union this;
26 char toybuf[4096]; 26 char toybuf[4096];
27 27
28 struct toy_list *toy_find(char *name) 28 struct toy_list *toy_find(char *name)
29 { 29 {
30 int top, bottom, middle; 30 int top, bottom, middle;