mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Local functions should be static
This commit is contained in:
parent
f64bb67d75
commit
a070d4cceb
1 changed files with 3 additions and 2 deletions
|
@ -313,8 +313,9 @@ reachable_object_i(VALUE ref, void *data)
|
|||
dc->cur_obj_references++;
|
||||
}
|
||||
|
||||
bool
|
||||
dump_string_ascii_only(const char *str, long size) {
|
||||
static bool
|
||||
dump_string_ascii_only(const char *str, long size)
|
||||
{
|
||||
for (long i = 0; i < size; i++) {
|
||||
if (str[i] & 0x80) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue