ruby-changes:74409
From: TSUYUSATO <ko1@a...>
Date: Wed, 9 Nov 2022 23:21:56 +0900 (JST)
Subject: [ruby-changes:74409] aefb7e5fa5 (master): Add static declaration to new functions
https://git.ruby-lang.org/ruby.git/commit/?id=aefb7e5fa5 From aefb7e5fa5f60d6ad9a6cf56bbf9ac950cee302e Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune <make.just.on@g...> Date: Tue, 4 Oct 2022 14:36:09 +0900 Subject: Add static declaration to new functions --- regexec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regexec.c b/regexec.c index 1633871647..07e5ed28c6 100644 --- a/regexec.c +++ b/regexec.c @@ -235,7 +235,7 @@ onig_get_capture_tree(OnigRegion* region) https://github.com/ruby/ruby/blob/trunk/regexec.c#L235 /* count number of jump-like opcodes for allocation of cache memory. */ /* return -1 if we cannot optimize the regex matching by using cache. */ -int count_num_cache_opcode(regex_t* reg) +static int count_num_cache_opcode(regex_t* reg) { int num = 0; UChar* pbegin; @@ -413,7 +413,7 @@ int count_num_cache_opcode(regex_t* reg) https://github.com/ruby/ruby/blob/trunk/regexec.c#L413 return num; } -void init_cache_index_table(regex_t* reg, UChar **table) +static void init_cache_index_table(regex_t* reg, UChar **table) { UChar** tstart = table; UChar* pbegin; @@ -590,7 +590,7 @@ void init_cache_index_table(regex_t* reg, UChar **table) https://github.com/ruby/ruby/blob/trunk/regexec.c#L590 } } -int find_cache_index_table(UChar** table, int num_cache_table, UChar* p) +static int find_cache_index_table(UChar** table, int num_cache_table, UChar* p) { int l = 0, r = num_cache_table - 1, m; -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/