From: K.Kosako Date: Thu, 21 Jun 2018 08:20:49 +0000 (+0900) Subject: remove OP_SET_OPTION and OP_SET_OPTION_PUSH X-Git-Tag: v6.9.0~61^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=213e97229404bd1105c3571db5529e15b826501d;p=onig remove OP_SET_OPTION and OP_SET_OPTION_PUSH --- diff --git a/src/regexec.c b/src/regexec.c index 1ec5183..c841b66 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -3484,22 +3484,6 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, break; #endif -#if 0 /* no need: IS_DYNAMIC_OPTION() == 0 */ - case OP_SET_OPTION_PUSH: SOP_IN(OP_SET_OPTION_PUSH); - GET_OPTION_INC(option, p); - STACK_PUSH_ALT(p, s, sprev); - p += SIZE_OP_SET_OPTION + SIZE_OP_FAIL; - SOP_OUT; - continue; - break; - - case OP_SET_OPTION: SOP_IN(OP_SET_OPTION); - GET_OPTION_INC(option, p); - SOP_OUT; - continue; - break; -#endif - case OP_EMPTY_CHECK_START: SOP_IN(OP_EMPTY_CHECK_START); GET_MEMNUM_INC(mem, p); /* mem: null check id */ STACK_PUSH_EMPTY_CHECK_START(mem, s); diff --git a/src/regint.h b/src/regint.h index 920a2ef..1f33386 100644 --- a/src/regint.h +++ b/src/regint.h @@ -678,10 +678,6 @@ enum OpCode { OP_CALLOUT_CONTENTS, /* (?{...}) (?{{...}}) */ OP_CALLOUT_NAME, /* (*name) (*name[tag](args...)) */ #endif - - /* no need: IS_DYNAMIC_OPTION() == 0 */ - OP_SET_OPTION_PUSH, /* set option and push recover option */ - OP_SET_OPTION /* set option */ }; enum SaveType {