| OLD | NEW |
| 1 #ifndef _REGEX_H | 1 #ifndef _REGEX_H |
| 2 #define _REGEX_H | 2 #define _REGEX_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #include <features.h> | 8 #include <features.h> |
| 9 | 9 |
| 10 #define __NEED_regoff_t | 10 #define __NEED_regoff_t |
| 11 #define __NEED_size_t | 11 #define __NEED_size_t |
| 12 | 12 |
| 13 #include <bits/alltypes.h> | 13 #include <bits/alltypes.h> |
| 14 | 14 |
| 15 typedef struct re_pattern_buffer { | 15 typedef struct re_pattern_buffer { |
| 16 » size_t re_nsub; | 16 size_t re_nsub; |
| 17 » void *__opaque, *__padding[4]; | 17 void *__opaque, *__padding[4]; |
| 18 » size_t __nsub2; | 18 size_t __nsub2; |
| 19 » char __padding2; | 19 char __padding2; |
| 20 } regex_t; | 20 } regex_t; |
| 21 | 21 |
| 22 typedef struct { | 22 typedef struct { |
| 23 » regoff_t rm_so; | 23 regoff_t rm_so; |
| 24 » regoff_t rm_eo; | 24 regoff_t rm_eo; |
| 25 } regmatch_t; | 25 } regmatch_t; |
| 26 | 26 |
| 27 #define REG_EXTENDED 1 | 27 #define REG_EXTENDED 1 |
| 28 #define REG_ICASE 2 | 28 #define REG_ICASE 2 |
| 29 #define REG_NEWLINE 4 | 29 #define REG_NEWLINE 4 |
| 30 #define REG_NOSUB 8 | 30 #define REG_NOSUB 8 |
| 31 | 31 |
| 32 #define REG_NOTBOL 1 | 32 #define REG_NOTBOL 1 |
| 33 #define REG_NOTEOL 2 | 33 #define REG_NOTEOL 2 |
| 34 | 34 |
| 35 #define REG_OK 0 | 35 #define REG_OK 0 |
| 36 #define REG_NOMATCH 1 | 36 #define REG_NOMATCH 1 |
| 37 #define REG_BADPAT 2 | 37 #define REG_BADPAT 2 |
| 38 #define REG_ECOLLATE 3 | 38 #define REG_ECOLLATE 3 |
| 39 #define REG_ECTYPE 4 | 39 #define REG_ECTYPE 4 |
| 40 #define REG_EESCAPE 5 | 40 #define REG_EESCAPE 5 |
| 41 #define REG_ESUBREG 6 | 41 #define REG_ESUBREG 6 |
| 42 #define REG_EBRACK 7 | 42 #define REG_EBRACK 7 |
| 43 #define REG_EPAREN 8 | 43 #define REG_EPAREN 8 |
| 44 #define REG_EBRACE 9 | 44 #define REG_EBRACE 9 |
| 45 #define REG_BADBR 10 | 45 #define REG_BADBR 10 |
| 46 #define REG_ERANGE 11 | 46 #define REG_ERANGE 11 |
| 47 #define REG_ESPACE 12 | 47 #define REG_ESPACE 12 |
| 48 #define REG_BADRPT 13 | 48 #define REG_BADRPT 13 |
| 49 | 49 |
| 50 #define REG_ENOSYS -1 | 50 #define REG_ENOSYS -1 |
| 51 | 51 |
| 52 int regcomp(regex_t *__restrict, const char *__restrict, int); | 52 int regcomp(regex_t* __restrict, const char* __restrict, int); |
| 53 int regexec(const regex_t *__restrict, const char *__restrict, size_t, regmatch_
t *__restrict, int); | 53 int regexec(const regex_t* __restrict, |
| 54 void regfree(regex_t *); | 54 const char* __restrict, |
| 55 size_t, |
| 56 regmatch_t* __restrict, |
| 57 int); |
| 58 void regfree(regex_t*); |
| 55 | 59 |
| 56 size_t regerror(int, const regex_t *__restrict, char *__restrict, size_t); | 60 size_t regerror(int, const regex_t* __restrict, char* __restrict, size_t); |
| 57 | 61 |
| 58 #ifdef __cplusplus | 62 #ifdef __cplusplus |
| 59 } | 63 } |
| 60 #endif | 64 #endif |
| 61 | 65 |
| 62 #endif | 66 #endif |
| OLD | NEW |