xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame^] | 1 | #if !defined ISO && !defined ISO99 && !defined ISO11 |
| 2 | type regex_t |
| 3 | element regex_t size_t re_nsub |
| 4 | |
| 5 | type regoff_t |
| 6 | |
| 7 | type regmatch_t |
| 8 | element regmatch_t regoff_t rm_so |
| 9 | element regmatch_t regoff_t rm_eo |
| 10 | |
| 11 | constant REG_EXTENDED |
| 12 | constant REG_ICASE |
| 13 | constant REG_NOSUB |
| 14 | constant REG_NEWLINE |
| 15 | |
| 16 | constant REG_NOTBOL |
| 17 | constant REG_NOTEOL |
| 18 | |
| 19 | constant REG_NOMATCH |
| 20 | constant REG_BADPAT |
| 21 | constant REG_ECOLLATE |
| 22 | constant REG_ECTYPE |
| 23 | constant REG_EESCAPE |
| 24 | constant REG_ESUBREG |
| 25 | constant REG_EBRACK |
| 26 | constant REG_EPAREN |
| 27 | constant REG_EBRACE |
| 28 | constant REG_BADBR |
| 29 | constant REG_ERANGE |
| 30 | constant REG_ESPACE |
| 31 | constant REG_BADRPT |
| 32 | # if !defined POSIX && !defined XOPEN2K8 && !defined POSIX2008 |
| 33 | constant REG_ENOSYS |
| 34 | # endif |
| 35 | |
| 36 | function int regcomp (regex_t*, const char*, int) |
| 37 | function int regexec (const regex_t*, const char*, size_t, regmatch_t[], int) |
| 38 | function size_t regerror (int, const regex_t*, char*, size_t) |
| 39 | function void regfree (regex_t*) |
| 40 | |
| 41 | allow REG_* |
| 42 | allow re_* |
| 43 | allow rm_* |
| 44 | allow *_t |
| 45 | #endif |