From 0e8219f591f3f17cb7ee361e8a60dbef08145883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Mon, 18 Nov 2019 12:13:08 +0900 Subject: make functions static These functions are used from within a compilation unit so we can make them static, for better binary size. This changeset reduces the size of generated ruby binary from 26,590,128 bytes to 26,584,472 bytes on my macihne. --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index b7443a7531..427739859b 100644 --- a/iseq.c +++ b/iseq.c @@ -690,7 +690,7 @@ set_compile_option_from_hash(rb_compile_option_t *option, VALUE opt) #undef SET_COMPILE_OPTION_NUM } -void +static void rb_iseq_make_compile_option(rb_compile_option_t *option, VALUE opt) { Check_Type(opt, T_HASH); @@ -963,7 +963,7 @@ rb_iseq_load(VALUE data, VALUE parent, VALUE opt) return iseq_load(data, RTEST(parent) ? (rb_iseq_t *)parent : NULL, opt); } -rb_iseq_t * +static rb_iseq_t * rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, VALUE opt) { rb_iseq_t *iseq = NULL; -- cgit v1.2.3