2005-12-11 15:16:03 +03:00
|
|
|
/* $NetBSD: sets.h,v 1.7 2005/12/11 12:25:16 christos Exp $ */
|
1993-04-09 16:00:07 +04:00
|
|
|
|
|
|
|
#define MAXEVENTS 200
|
|
|
|
#define MAXSTATES 200
|
|
|
|
|
|
|
|
#define STATESET 10
|
|
|
|
#define EVENTSET 5
|
|
|
|
|
|
|
|
#define OBJ_ITEM 2
|
|
|
|
#define OBJ_SET 3
|
|
|
|
|
|
|
|
struct Object {
|
|
|
|
unsigned char obj_kind;
|
|
|
|
unsigned char obj_type; /* state or event */
|
|
|
|
char *obj_name;
|
|
|
|
char *obj_struc;
|
2005-02-27 01:31:44 +03:00
|
|
|
int obj_number;
|
1993-04-09 16:00:07 +04:00
|
|
|
struct Object *obj_members; /* must be null for kind==item */
|
|
|
|
/* for the tree */
|
|
|
|
struct Object *obj_left;
|
|
|
|
struct Object *obj_right;
|
|
|
|
struct Object *obj_parent;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
extern char *Noname;
|
|
|
|
|
|
|
|
#define OBJ_NAME(o) (((o)->obj_name)?(o)->obj_name:Noname)
|
|
|
|
|
|
|
|
extern int Nevents, Nstates;
|
|
|
|
int Eventshift;
|
|
|
|
extern struct Object *CurrentEvent;
|
|
|
|
|
2001-06-18 13:57:27 +04:00
|
|
|
extern struct Object *lookup();
|
1993-04-09 16:00:07 +04:00
|
|
|
extern struct Object *defineset();
|
2001-06-18 13:57:27 +04:00
|
|
|
extern void end_states();
|
|
|
|
extern struct Object *Lookup();
|
|
|
|
extern void defineitem();
|
|
|
|
extern void member();
|
|
|
|
extern void dump_trans();
|