1 #ifndef re2c_ins_h 2 #define re2c_ins_h 3 4 #include "tools/re2c/basics.h" 5 6 #define nChars 256 7 typedef unsigned char Char; 8 9 #define CHAR 0 10 #define GOTO 1 11 #define FORK 2 12 #define TERM 3 13 #define CTXT 4 14 15 typedef union Ins { 16 struct { 17 byte tag; 18 byte marked; 19 void *link; 20 } i; 21 struct { 22 unsigned short value; 23 unsigned short bump; 24 void *link; 25 } c; 26 } Ins; 27 isMarked(Ins * i)28static int isMarked(Ins *i){ 29 return i->i.marked != 0; 30 } 31 mark(Ins * i)32static void mark(Ins *i){ 33 i->i.marked = 1; 34 } 35 unmark(Ins * i)36static void unmark(Ins *i){ 37 i->i.marked = 0; 38 } 39 40 #endif 41