X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=cbits%2Fregex%2Fengine.c;h=045faa6ef7f232bb3f33cd73dd923f423b696332;hb=784c1ec4728f3f720db1f8fc9a73abf33cdd3f27;hp=830f19b21f4b056fdd8cfe3fedda08934f8a6dbc;hpb=06cabac6877d25385a6f42a60faeda0b28ce3e10;p=ghc-base.git diff --git a/cbits/regex/engine.c b/cbits/regex/engine.c index 830f19b..045faa6 100644 --- a/cbits/regex/engine.c +++ b/cbits/regex/engine.c @@ -92,12 +92,12 @@ 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) @@ -108,7 +108,7 @@ 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));