aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex/regex.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-02-13 00:02:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-02-13 00:02:36 +0000
commitf7a839bc2ba3f15d48006fe931499d4d9cfb314f (patch)
tree94bed4f73922d577c2466149fe703f94d6f77722 /src/include/regex/regex.h
parentf4e4c7291ea691e558285fafbd6648ba85af5f26 (diff)
downloadpostgresql-f7a839bc2ba3f15d48006fe931499d4d9cfb314f.tar.gz
postgresql-f7a839bc2ba3f15d48006fe931499d4d9cfb314f.zip
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.
Diffstat (limited to 'src/include/regex/regex.h')
-rw-r--r--src/include/regex/regex.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h
index b0b86f3cb6d..b0c136f83d3 100644
--- a/src/include/regex/regex.h
+++ b/src/include/regex/regex.h
@@ -102,10 +102,12 @@ typedef struct
#define REG_LARGE 01000 /* force large representation */
#define REG_BACKR 02000 /* force use of backref code */
-int pg95_regcomp(regex_t *, const char *, int);
-size_t pg95_regerror(int, const regex_t *, char *, size_t);
-int pg95_regexec(const regex_t *,
- const char *, size_t, regmatch_t[], int);
-void pg95_regfree(regex_t *);
+extern int pg95_regcomp(regex_t *preg, const char *pattern, int cflags);
+extern size_t pg95_regerror(int errcode, const regex_t *preg,
+ char *errbuf, size_t errbuf_size);
+extern int pg95_regexec(const regex_t *preg, const char *string,
+ size_t nmatch,
+ regmatch_t *pmatch, int eflags);
+extern void pg95_regfree(regex_t *preg);
#endif /* !_REGEX_H_ */