diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-07 21:19:35 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-07 21:19:35 +0000 |
commit | 882bbf6f4521e50eadf2e573b36c565c69f29025 (patch) | |
tree | e3d4ee6cdf5ae76efa1b5a9f4f341361f46958f7 /regex | |
parent | 694d94983b70078fbd4ae0adb1ccb0d498726afe (diff) | |
download | php-git-882bbf6f4521e50eadf2e573b36c565c69f29025.tar.gz |
Win32 patches
Diffstat (limited to 'regex')
-rw-r--r-- | regex/debug.ih | 14 | ||||
-rw-r--r-- | regex/engine.ih | 35 | ||||
-rw-r--r-- | regex/main.ih | 19 | ||||
-rw-r--r-- | regex/regcomp.ih | 48 | ||||
-rw-r--r-- | regex/regerror.ih | 12 |
5 files changed, 128 insertions, 0 deletions
diff --git a/regex/debug.ih b/regex/debug.ih new file mode 100644 index 0000000000..5f40ff7917 --- /dev/null +++ b/regex/debug.ih @@ -0,0 +1,14 @@ +/* ========= begin header generated by ./mkh ========= */ +#ifdef __cplusplus +extern "C" { +#endif + +/* === debug.c === */ +void regprint(regex_t *r, FILE *d); +static void s_print(register struct re_guts *g, FILE *d); +static char *regchar(int ch); + +#ifdef __cplusplus +} +#endif +/* ========= end header generated by ./mkh ========= */ diff --git a/regex/engine.ih b/regex/engine.ih new file mode 100644 index 0000000000..1564a2f11f --- /dev/null +++ b/regex/engine.ih @@ -0,0 +1,35 @@ +/* ========= begin header generated by ../../regex/mkh ========= */ +#ifdef __cplusplus +extern "C" { +#endif + +/* === ../../regex/engine.c === */ +static int matcher(register struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], int eflags); +static char *dissect(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); +static char *backref(register struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno lev); +static char *fast(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); +static char *slow(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); +static states step(register struct re_guts *g, sopno start, sopno stop, register states bef, int ch, register states aft); +#define BOL (OUT+1) +#define EOL (BOL+1) +#define BOLEOL (BOL+2) +#define NOTHING (BOL+3) +#define BOW (BOL+4) +#define EOW (BOL+5) +#define CODEMAX (BOL+5) /* highest code used */ +#define NONCHAR(c) ((c) > CHAR_MAX) +#define NNONCHAR (CODEMAX-CHAR_MAX) +#ifdef REDEBUG +static void print(struct match *m, char *caption, states st, int ch, FILE *d); +#endif +#ifdef REDEBUG +static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); +#endif +#ifdef REDEBUG +static char *pchar(int ch); +#endif + +#ifdef __cplusplus +} +#endif +/* ========= end header generated by ../../regex/mkh ========= */ diff --git a/regex/main.ih b/regex/main.ih new file mode 100644 index 0000000000..5a0118ac44 --- /dev/null +++ b/regex/main.ih @@ -0,0 +1,19 @@ +/* ========= begin header generated by ./mkh ========= */ +#ifdef __cplusplus +extern "C" { +#endif + +/* === main.c === */ +void regress(FILE *in); +void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); +int options(int type, char *s); +int opt(int c, char *s); +void fixstr(register char *p); +char *check(char *str, regmatch_t sub, char *should); +static char *eprint(int err); +static int efind(char *name); + +#ifdef __cplusplus +} +#endif +/* ========= end header generated by ./mkh ========= */ diff --git a/regex/regcomp.ih b/regex/regcomp.ih new file mode 100644 index 0000000000..ece1722f18 --- /dev/null +++ b/regex/regcomp.ih @@ -0,0 +1,48 @@ +/* ========= begin header generated by ../../regex/mkh ========= */ +#ifdef __cplusplus +extern "C" { +#endif + +/* === ../../regex/regcomp.c === */ +static void p_ere(register struct parse *p, int stop); +static void p_ere_exp(register struct parse *p); +static void p_str(register struct parse *p); +static void p_bre(register struct parse *p, register int end1, register int end2); +static int p_simp_re(register struct parse *p, int starordinary); +static int p_count(register struct parse *p); +static void p_bracket(register struct parse *p); +static void p_b_term(register struct parse *p, register cset *cs); +static void p_b_cclass(register struct parse *p, register cset *cs); +static void p_b_eclass(register struct parse *p, register cset *cs); +static char p_b_symbol(register struct parse *p); +static char p_b_coll_elem(register struct parse *p, int endc); +static char othercase(int ch); +static void bothcases(register struct parse *p, int ch); +static void ordinary(register struct parse *p, register int ch); +static void nonnewline(register struct parse *p); +static void repeat(register struct parse *p, sopno start, int from, int to); +static int seterr(register struct parse *p, int e); +static cset *allocset(register struct parse *p); +static void freeset(register struct parse *p, register cset *cs); +static int freezeset(register struct parse *p, register cset *cs); +static int firstch(register struct parse *p, register cset *cs); +static int nch(register struct parse *p, register cset *cs); +static void mcadd(register struct parse *p, register cset *cs, register char *cp); +static void mcinvert(register struct parse *p, register cset *cs); +static void mccase(register struct parse *p, register cset *cs); +static int isinsets(register struct re_guts *g, int c); +static int samesets(register struct re_guts *g, int c1, int c2); +static void categorize(struct parse *p, register struct re_guts *g); +static sopno dupl(register struct parse *p, sopno start, sopno finish); +static void doemit(register struct parse *p, sop op, size_t opnd); +static void doinsert(register struct parse *p, sop op, size_t opnd, sopno pos); +static void dofwd(register struct parse *p, sopno pos, sop value); +static void enlarge(register struct parse *p, sopno size); +static void stripsnug(register struct parse *p, register struct re_guts *g); +static void findmust(register struct parse *p, register struct re_guts *g); +static sopno pluscount(register struct parse *p, register struct re_guts *g); + +#ifdef __cplusplus +} +#endif +/* ========= end header generated by ../../regex/mkh ========= */ diff --git a/regex/regerror.ih b/regex/regerror.ih new file mode 100644 index 0000000000..498a324f4b --- /dev/null +++ b/regex/regerror.ih @@ -0,0 +1,12 @@ +/* ========= begin header generated by ../../regex/mkh ========= */ +#ifdef __cplusplus +extern "C" { +#endif + +/* === ../../regex/regerror.c === */ +static char *regatoi(const regex_t *preg, char *localbuf); + +#ifdef __cplusplus +} +#endif +/* ========= end header generated by ../../regex/mkh ========= */ |