Clean up portability problems in regexp package: change all routine
Tom Lane <tgl@sss.pgh.pa.us>
Clean up portability problems in regexp package: change all routine definitions from K&R to ANSI C style, and fix broken assumption that int and long are the same datatype. This repairs problems observed on Alpha with regexps having between 32 and 63 states.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/regex/engine.c | modified | +64 −149 |
| src/backend/regex/regcomp.c | modified | +129 −330 |
| src/backend/regex/regerror.c | modified | +6 −53 |
| src/backend/regex/regexec.c | modified | +15 −36 |
| src/backend/regex/regfree.c | modified | +2 −11 |
| src/include/regex/cclass.h | modified | +1 −1 |
| src/include/regex/regex2.h | modified | +2 −18 |
| src/include/regex/regex.h | modified | +7 −5 |