-#ifdef USE_THREADED_CODE
+#ifdef USE_GOTO_LABELS_AS_VALUES
#define BYTECODE_INTERPRETER_START GOTO_OP;
#define BYTECODE_INTERPRETER_END
#define GOTO_OP continue; break
#define BREAK_OP break
-#endif /* USE_THREADED_CODE */
+#endif /* USE_GOTO_LABELS_AS_VALUES */
#define INC_OP p++
#define NEXT_OUT SOP_OUT; NEXT_OP
{
#ifdef ONIG_DEBUG
-#if defined(USE_THREADED_CODE) && defined(USE_DIRECT_THREADED_CODE)
+#if defined(USE_DIRECT_THREADED_CODE)
static Operation FinishCode[] = { {.opcode=OP_FINISH, .opaddr=&&L_FINISH } };
#else
static Operation FinishCode[] = { {OP_FINISH } };
#endif
#else
-#if defined(USE_THREADED_CODE) && defined(USE_DIRECT_THREADED_CODE)
+#if defined(USE_DIRECT_THREADED_CODE)
static Operation FinishCode[] = { { {.opaddr=&&L_FINISH} } };
#else
static Operation FinishCode[] = { { {OP_FINISH} } };
#endif
#endif
-#ifdef USE_THREADED_CODE
+#ifdef USE_GOTO_LABELS_AS_VALUES
static const void *opcode_to_label[] = {
&&L_FINISH,
&&L_END,
static unsigned int counter = 1;
#endif
-#ifdef USE_THREADED_CODE
#ifdef USE_DIRECT_THREADED_CODE
if (IS_NULL(msa)) {
for (i = 0; i < reg->ops_used; i++) {
return ONIG_NORMAL;
}
#endif
-#endif
#ifdef USE_CALLOUT
msa->mp->match_at_call_counter++;
return ONIG_NORMAL;
}
-#ifdef USE_THREADED_CODE
#ifdef USE_DIRECT_THREADED_CODE
extern int
onig_init_for_match_at(regex_t* reg)
(MatchArg* )NULL);
}
#endif
-#endif
/* builtin callout functions */
#endif
#ifdef __GNUC__
-#define USE_THREADED_CODE
+#define USE_GOTO_LABELS_AS_VALUES
#endif
/* config */
#define USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE /* /\n$/ =~ "\n" */
#define USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATOR
#define USE_RETRY_LIMIT_IN_MATCH
-#ifdef USE_THREADED_CODE
+#ifdef USE_GOTO_LABELS_AS_VALUES
#define USE_DIRECT_THREADED_CODE
#endif