aboutsummaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <make.just.on@gmail.com>2022-10-04 14:36:09 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-11-09 23:21:26 +0900
commitaefb7e5fa5f60d6ad9a6cf56bbf9ac950cee302e (patch)
tree0ff884092603ca52048a3134c781f4b4f9581fb3 /regexec.c
parentd84edce689b8634d9a627a2b73434b9115dd5c72 (diff)
downloadruby-aefb7e5fa5f60d6ad9a6cf56bbf9ac950cee302e.tar.gz
Add static declaration to new functions
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files 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)
/* 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)
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)
}
}
-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;