From: K.Kosako Date: Wed, 20 Mar 2019 04:24:14 +0000 (+0900) Subject: refactoring (USE_THREADED_CODE) X-Git-Tag: v6.9.2_rc1~65^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2056ba96dbd99f0460da00329566f48cb9ced1c6;p=onig refactoring (USE_THREADED_CODE) --- diff --git a/src/regexec.c b/src/regexec.c index 03843f0..21181f2 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -2366,7 +2366,7 @@ typedef struct { -#ifdef USE_GOTO_LABELS_AS_VALUES +#ifdef USE_THREADED_CODE #define BYTECODE_INTERPRETER_START GOTO_OP; #define BYTECODE_INTERPRETER_END @@ -2396,7 +2396,7 @@ typedef struct { #define GOTO_OP continue; break #define BREAK_OP break -#endif /* USE_GOTO_LABELS_AS_VALUES */ +#endif /* USE_THREADED_CODE */ #define INC_OP p++ #define NEXT_OUT SOP_OUT; NEXT_OP @@ -2457,7 +2457,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, static Operation FinishCode[] = { { OP_FINISH } }; #endif -#ifdef USE_GOTO_LABELS_AS_VALUES +#ifdef USE_THREADED_CODE static const void *opcode_to_label[] = { &&L_FINISH, &&L_END, diff --git a/src/regint.h b/src/regint.h index 9c3c6d8..b6892e3 100644 --- a/src/regint.h +++ b/src/regint.h @@ -68,6 +68,7 @@ #define USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATOR #define USE_RETRY_LIMIT_IN_MATCH #ifdef USE_GOTO_LABELS_AS_VALUES +#define USE_THREADED_CODE #define USE_DIRECT_THREADED_CODE #endif