/* pattern.h -- define codes for compiled patterns */ #define P_CHAR 0xff /* mask for char */ #define P_END 0 /* end of pattern */ #define P_CLOSE -1 /* closure */ #define P_STCLS -2 /* start a char class */ #define P_ENCLS -3 /* end a char class */ #define P_NTCLS -4 /* start a not char class */ #define P_BOL -5 /* beginning of line */ #define P_EOL -6 /* end of line */ #define P_RANGE -7 /* char range within a class */ #define P_WILD -8 /* wild card: matches anything */