NetBSD/sys/netiso/xebec/sets.h
2005-02-26 22:31:44 +00:00

40 lines
855 B
C

/* $NetBSD: sets.h,v 1.6 2005/02/26 22:39:49 perry Exp $ */
#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;
int obj_number;
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;
extern struct Object *lookup();
extern struct Object *defineset();
extern void end_states();
extern struct Object *Lookup();
extern void defineitem();
extern void member();
extern void dump_trans();