|
#define | MAGIC1 ((('r' ^ 0200) << 8) | 'e') |
|
#define | OPRMASK 0xf8000000LU |
|
#define | OPDMASK 0x07ffffffLU |
|
#define | OPSHIFT ((unsigned)27) |
|
#define | OP(n) ((n)&OPRMASK) |
|
#define | OPND(n) ((n)&OPDMASK) |
|
#define | SOP(op, opnd) ((op) | (opnd)) |
|
#define | OEND (1LU << OPSHIFT) /* endmarker - */ |
|
#define | OCHAR (2LU << OPSHIFT) /* character unsigned char */ |
|
#define | OBOL (3LU << OPSHIFT) /* left anchor - */ |
|
#define | OEOL (4LU << OPSHIFT) /* right anchor - */ |
|
#define | OANY (5LU << OPSHIFT) /* . - */ |
|
#define | OANYOF (6LU << OPSHIFT) /* [...] set number */ |
|
#define | OBACK_ (7LU << OPSHIFT) /* begin \d paren number */ |
|
#define | O_BACK (8LU << OPSHIFT) /* end \d paren number */ |
|
#define | OPLUS_ (9LU << OPSHIFT) /* + prefix fwd to suffix */ |
|
#define | O_PLUS (10LU << OPSHIFT) /* + suffix back to prefix */ |
|
#define | OQUEST_ (11LU << OPSHIFT) /* ? prefix fwd to suffix */ |
|
#define | O_QUEST (12LU << OPSHIFT) /* ? suffix back to prefix */ |
|
#define | OLPAREN (13LU << OPSHIFT) /* ( fwd to ) */ |
|
#define | ORPAREN (14LU << OPSHIFT) /* ) back to ( */ |
|
#define | OCH_ (15LU << OPSHIFT) /* begin choice fwd to OOR2 */ |
|
#define | OOR1 (16LU << OPSHIFT) /* | pt. 1 back to OOR1 or OCH_ */ |
|
#define | OOR2 (17LU << OPSHIFT) /* | pt. 2 fwd to OOR2 or O_CH */ |
|
#define | O_CH (18LU << OPSHIFT) /* end choice back to OOR1 */ |
|
#define | OBOW (19LU << OPSHIFT) /* begin word - */ |
|
#define | OEOW (20LU << OPSHIFT) /* end word - */ |
|
#define | CHadd(cs, c) ((cs)->ptr[(ut8)(c)] |= (cs)->mask, (cs)->hash += (c)) |
|
#define | CHsub(cs, c) ((cs)->ptr[(ut8)(c)] &= ~(cs)->mask, (cs)->hash -= (c)) |
|
#define | CHIN(cs, c) ((cs)->ptr[(ut8)(c)] & (cs)->mask) |
|
#define | MCadd(p, cs, cp) mcadd(p, cs, cp) /* regcomp() internal fns */ |
|
#define | MCsub(p, cs, cp) mcsub(p, cs, cp) |
|
#define | MCin(p, cs, cp) mcin(p, cs, cp) |
|
#define | MAGIC2 ((('R' ^ 0200) << 8) | 'E') |
|
#define | USEBOL 01 /* used ^ */ |
|
#define | USEEOL 02 /* used $ */ |
|
#define | BAD 04 /* something wrong */ |
|
#define | OUT (-CHAR_MIN + CHAR_MAX + 1) /* a non-character value */ |
|
#define | ISWORD(c) (isalnum((ut8)(c)) || (c) == '_') |
|