| 1 | /* |
| 2 | * from: sets.h,v 2.1 88/09/19 12:56:33 nhall Exp |
| 3 | * $Id$ |
| 4 | */ |
| 5 | |
| 6 | #define MAXEVENTS 200 |
| 7 | #define MAXSTATES 200 |
| 8 | |
| 9 | #define STATESET 10 |
| 10 | #define EVENTSET 5 |
| 11 | |
| 12 | #define OBJ_ITEM 2 |
| 13 | #define OBJ_SET 3 |
| 14 | |
| 15 | struct Object { |
| 16 | unsigned char obj_kind; |
| 17 | unsigned char obj_type; /* state or event */ |
| 18 | char *obj_name; |
| 19 | char *obj_struc; |
| 20 | int obj_number; |
| 21 | struct Object *obj_members; /* must be null for kind==item */ |
| 22 | /* for the tree */ |
| 23 | struct Object *obj_left; |
| 24 | struct Object *obj_right; |
| 25 | struct Object *obj_parent; |
| 26 | } ; |
| 27 | |
| 28 | extern char *Noname; |
| 29 | |
| 30 | #define OBJ_NAME(o) (((o)->obj_name)?(o)->obj_name:Noname) |
| 31 | |
| 32 | extern int Nevents, Nstates; |
| 33 | int Eventshift; |
| 34 | extern struct Object *CurrentEvent; |
| 35 | |
| 36 | extern struct Object *Lookup(); |
| 37 | extern struct Object *defineset(); |
| 38 | |