From: K.Kosako Date: Tue, 26 Feb 2019 02:23:10 +0000 (+0900) Subject: refactoring X-Git-Tag: v6.9.2_rc1~65^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a54926a9f9658d4bd3b16867fa56976f6b001f96;p=onig refactoring --- diff --git a/src/regexec.c b/src/regexec.c index ab12d9c..6b09fb0 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -297,9 +297,9 @@ bitset_on_num(BitSetRef bs) return n; } -extern void -onig_print_compiled_byte_code(FILE* f, regex_t* reg, int index, - Operation* start, OnigEncoding enc) +static void +print_compiled_byte_code(FILE* f, regex_t* reg, int index, + Operation* start, OnigEncoding enc) { int i, n; RelAddrType addr; @@ -609,7 +609,7 @@ onig_print_compiled_byte_code(FILE* f, regex_t* reg, int index, break; default: - fprintf(stderr, "onig_print_compiled_byte_code: undefined code %d\n", opcode); + fprintf(stderr, "print_compiled_byte_code: undefined code %d\n", opcode); break; } } @@ -632,7 +632,7 @@ onig_print_compiled_byte_code_list(FILE* f, regex_t* reg) int pos = bp - start; fprintf(f, "%4d: ", pos); - onig_print_compiled_byte_code(f, reg, pos, start, reg->enc); + print_compiled_byte_code(f, reg, pos, start, reg->enc); fprintf(f, "\n"); bp++; } @@ -2431,7 +2431,7 @@ typedef struct { fprintf(stderr, "----: finish");\ else {\ fprintf(stderr, "%4d: ", (int )(xp - reg->ops));\ - onig_print_compiled_byte_code(stderr, reg, (int )(xp - reg->ops), reg->ops, encode);\ + print_compiled_byte_code(stderr, reg, (int )(xp - reg->ops), reg->ops, encode);\ }\ fprintf(stderr, "\n");\ } while(0);