1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Remove __P macro usage so it compiles without cdefs.h.

This commit is contained in:
Bryan Henderson
1996-12-15 09:21:37 +00:00
parent 9fc7250d3a
commit fa9c0fff36
3 changed files with 62 additions and 50 deletions

View File

@ -90,12 +90,23 @@ extern "C" {
#endif
/* === engine.c === */
static int matcher __P((struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], int eflags));
static char *dissect __P((struct match *m, char *start, char *stop, sopno startst, sopno stopst));
static char *backref __P((struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno lev));
static char *fast __P((struct match *m, char *start, char *stop, sopno startst, sopno stopst));
static char *slow __P((struct match *m, char *start, char *stop, sopno startst, sopno stopst));
static states step __P((struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft));
static int
matcher(struct re_guts *g, char *string, size_t nmatch,
regmatch_t pmatch[], int eflags);
static char *
dissect(struct match *m, char *start, char *stop,
sopno startst, sopno stopst);
static char *
backref(struct match *m, char *start, char *stop,
sopno startst, sopno stopst, sopno lev);
static char *
fast(struct match *m, char *start, char *stop,
sopno startst, sopno stopst);
static char *
slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst);
static states
step(struct re_guts *g, sopno start,
sopno stop, states bef, int ch, states aft);
#define BOL (OUT+1)
#define EOL (BOL+1)
#define BOLEOL (BOL+2)
@ -106,13 +117,17 @@ static states step __P((struct re_guts *g, sopno start, sopno stop, states bef,
#define NONCHAR(c) ((c) > CHAR_MAX)
#define NNONCHAR (CODEMAX-CHAR_MAX)
#ifdef REDEBUG
static void print __P((struct match *m, char *caption, states st, int ch, FILE *d));
static void
print(struct match *m, char *caption, states st, int ch, FILE *d);
#endif
#ifdef REDEBUG
static void at __P((struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst));
static void
at(struct match *m, char *title, char *start, char *stop,
sopno startst, sopno stopst);
#endif
#ifdef REDEBUG
static char *pchar __P((int ch));
static char *
pchar(int ch);
#endif
#ifdef __cplusplus