From: Mark-Jason Dominus Date: Sat, 21 Jul 2001 18:33:25 +0000 (-0400) Subject: regexec.c #define cleanup X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ba1375edf08754c30bc57687bddebe6fbbb21fa;p=p5sagit%2Fp5-mst-13.2.git regexec.c #define cleanup Message-ID: <20010721223325.3069.qmail@plover.com> p4raw-id: //depot/perl@11437 --- diff --git a/regexec.c b/regexec.c index 0e780d0..31a1c6a 100644 --- a/regexec.c +++ b/regexec.c @@ -1957,6 +1957,16 @@ typedef union re_unwind_t { re_unwind_branch_t branch; } re_unwind_t; +#define sayYES goto yes +#define sayNO goto no +#define sayYES_FINAL goto yes_final +#define sayYES_LOUD goto yes_loud +#define sayNO_FINAL goto no_final +#define sayNO_SILENT goto do_no +#define saySAME(x) if (x) goto yes; else goto no + +#define REPORT_CODE_OFF 24 + /* - regmatch - main matching routine * @@ -1999,25 +2009,7 @@ S_regmatch(pTHX_ regnode *prog) nextchr = UCHARAT(locinput); scan = prog; while (scan != NULL) { -#define sayNO_L (logical ? (logical = 0, sw = 0, goto cont) : sayNO) -#if 1 -# define sayYES goto yes -# define sayNO goto no -# define sayYES_FINAL goto yes_final -# define sayYES_LOUD goto yes_loud -# define sayNO_FINAL goto no_final -# define sayNO_SILENT goto do_no -# define saySAME(x) if (x) goto yes; else goto no -# define REPORT_CODE_OFF 24 -#else -# define sayYES return 1 -# define sayNO return 0 -# define sayYES_FINAL return 1 -# define sayYES_LOUD return 1 -# define sayNO_FINAL return 0 -# define sayNO_SILENT return 0 -# define saySAME(x) return x -#endif + DEBUG_r( { SV *prop = sv_newmortal(); int docolor = *PL_colors[0];