]> granicus.if.org Git - onig/commitdiff
refactoring
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 30 Jul 2019 08:56:00 +0000 (17:56 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 30 Jul 2019 08:56:00 +0000 (17:56 +0900)
src/regparse.c

index d6beabc1e50f7071d2a156328a8d1a2565ee2ca7..e10edbe9c5d301a75f4c33ce280851c3e64880c8 100644 (file)
@@ -7442,6 +7442,7 @@ parse_bag(Node** np, PToken* tok, int term, UChar** src, UChar* end,
       }
       break;
 
+#ifdef USE_CAPTURE_HISTORY
     case '@':
       if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY)) {
         if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP)) {
@@ -7469,6 +7470,7 @@ parse_bag(Node** np, PToken* tok, int term, UChar** src, UChar* end,
         return ONIGERR_UNDEFINED_GROUP_OPTION;
       }
       break;
+#endif
 
 #ifdef USE_POSIXLINE_OPTION
     case 'p':