From: K.Kosako Date: Mon, 19 Feb 2018 04:34:35 +0000 (+0900) Subject: remove enum CalloutDirectionFlagType X-Git-Tag: v6.8.0~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2fddc0b58714fcc13a894db5fac4f08c0c00a8a;p=onig remove enum CalloutDirectionFlagType --- diff --git a/src/oniguruma.h b/src/oniguruma.h index 05659b3..3c7e235 100644 --- a/src/oniguruma.h +++ b/src/oniguruma.h @@ -724,13 +724,13 @@ typedef struct { /* types for callout */ enum OnigCalloutIn { - ONIG_CALLOUT_IN_PROGRESS = 0, - ONIG_CALLOUT_IN_RETRACTION = 1, + ONIG_CALLOUT_IN_PROGRESS = 1, /* 1<<0 */ + ONIG_CALLOUT_IN_RETRACTION = 2 /* 1<<1 */ }; enum OnigCalloutOf { ONIG_CALLOUT_OF_CODE = 0, - ONIG_CALLOUT_OF_NAME = 1, + ONIG_CALLOUT_OF_NAME = 1 }; #define ONIG_NO_NAME_ID -1 diff --git a/src/regexec.c b/src/regexec.c index 4c7cd47..2ce818f 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -3696,7 +3696,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, GET_POINTER_INC(content_start, p); GET_POINTER_INC(content_end, p); - if (IS_NOT_NULL(func) && (dirs & CALLOUT_IN_PROGRESS) != 0) { + if (IS_NOT_NULL(func) && (dirs & ONIG_CALLOUT_IN_PROGRESS) != 0) { CALLOUT_BODY(func, ONIG_CALLOUT_IN_PROGRESS, of, name_id, num, content_start, content_end, msa->mp->callout_user_data, args, call_result); @@ -3720,7 +3720,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, } else { retraction_callout2: - if ((dirs & CALLOUT_IN_RETRACTION) != 0) { + if ((dirs & ONIG_CALLOUT_IN_RETRACTION) != 0) { if (of == ONIG_CALLOUT_OF_NAME) { func = onig_get_callout_func_from_id(name_id); if (IS_NOT_NULL(func)) { diff --git a/src/regint.h b/src/regint.h index eac8346..ea3553f 100644 --- a/src/regint.h +++ b/src/regint.h @@ -629,13 +629,6 @@ enum UpdateVarType { UPDATE_VAR_RIGHT_RANGE_INIT = 4, }; -#ifdef USE_CALLOUT -enum CalloutDirectionFlagType { - CALLOUT_IN_PROGRESS = 1, /* == 1<