Print this page
8993 sync regcomp(3C) with upstream


 169         sopno firststate;       /* the initial OEND (normally 0) */
 170         sopno laststate;        /* the final OEND */
 171         int iflags;             /* internal flags */
 172 #define USEBOL  01      /* used ^ */
 173 #define USEEOL  02      /* used $ */
 174 #define BAD     04      /* something wrong */
 175         int nbol;               /* number of ^ used */
 176         int neol;               /* number of $ used */
 177         char *must;             /* match must contain this string */
 178         int moffset;            /* latest point at which must may be located */
 179         int *charjump;          /* Boyer-Moore char jump table */
 180         int *matchjump;         /* Boyer-Moore match jump table */
 181         int mlen;               /* length of must */
 182         size_t nsub;            /* copy of re_nsub */
 183         int backrefs;           /* does it use back references? */
 184         sopno nplus;            /* how deep does it nest +s? */
 185 };
 186 
 187 /* misc utilities */
 188 #define OUT     (CHAR_MIN - 1)  /* a non-character value */

 189 #define ISWORD(c)       (iswalnum((uch)(c)) || (c) == '_')


 169         sopno firststate;       /* the initial OEND (normally 0) */
 170         sopno laststate;        /* the final OEND */
 171         int iflags;             /* internal flags */
 172 #define USEBOL  01      /* used ^ */
 173 #define USEEOL  02      /* used $ */
 174 #define BAD     04      /* something wrong */
 175         int nbol;               /* number of ^ used */
 176         int neol;               /* number of $ used */
 177         char *must;             /* match must contain this string */
 178         int moffset;            /* latest point at which must may be located */
 179         int *charjump;          /* Boyer-Moore char jump table */
 180         int *matchjump;         /* Boyer-Moore match jump table */
 181         int mlen;               /* length of must */
 182         size_t nsub;            /* copy of re_nsub */
 183         int backrefs;           /* does it use back references? */
 184         sopno nplus;            /* how deep does it nest +s? */
 185 };
 186 
 187 /* misc utilities */
 188 #define OUT     (CHAR_MIN - 1)  /* a non-character value */
 189 #define IGN     (CHAR_MIN - 2)
 190 #define ISWORD(c)       (iswalnum((uch)(c)) || (c) == '_')