]> granicus.if.org Git - onig/commitdiff
remove OP_SET_OPTION and OP_SET_OPTION_PUSH
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 21 Jun 2018 08:20:49 +0000 (17:20 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 21 Jun 2018 08:20:49 +0000 (17:20 +0900)
src/regexec.c
src/regint.h

index 1ec51838a2e2cdca531972a5c8ecb635836c4de8..c841b66cd9c4cfb99bf16b049e12acbba8cea29e 100644 (file)
@@ -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);
index 920a2efb7f44aad686749ae05d43963973af9b14..1f333861653bcf7d5ddeee4e84a58d744ffd07e7 100644 (file)
@@ -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 {