From: K.Kosako Date: Tue, 9 Oct 2018 04:31:15 +0000 (+0900) Subject: fix compile error in ONIG_DEBUG_MATCH X-Git-Tag: v6.9.1~18^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2aa86b274b994c418c86b30860c204b23ff4c2c;p=onig fix compile error in ONIG_DEBUG_MATCH --- diff --git a/src/regexec.c b/src/regexec.c index 9a874fc..e4ed2ae 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -2346,7 +2346,7 @@ typedef struct { #define BYTECODE_INTERPRETER_START JUMP_OP; #define BYTECODE_INTERPRETER_END -#define CASE_OP(x) L_##x: SOP_IN(OP_##x); sbegin = s; MATCH_DEBUG_OUT(1); +#define CASE_OP(x) L_##x: SOP_IN(OP_##x); sbegin = s; MATCH_DEBUG_OUT(1) #define DEFAULT_OP /* L_DEFAULT: */ #define NEXT_OP sprev = sbegin; JUMP_OP #define JUMP_OP goto *opcode_to_label[*p++] @@ -2396,7 +2396,7 @@ typedef struct { fprintf(stderr, "%4d: ", (int )(xp - reg->p));\ onig_print_compiled_byte_code(stderr, xp, NULL, reg->p, encode);\ fprintf(stderr, "\n");\ - } + } while(0); #else #define MATCH_DEBUG_OUT(offset) #endif