diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | enumerator.c | 2 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | gc.c | 4 | ||||
-rw-r--r-- | parse.y | 2 | ||||
-rw-r--r-- | regparse.c | 2 | ||||
-rw-r--r-- | sjis.c | 2 | ||||
-rw-r--r-- | time.c | 2 |
8 files changed, 13 insertions, 8 deletions
@@ -1,3 +1,8 @@ +Wed Oct 19 02:34:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * enumerator.c, eval.c, gc.c, parse.y, regparse.c, sjis.c, time.c: + made internal symbols static. [ruby-dev:27435] + Tue Oct 18 10:58:27 2005 NAKAMURA Usaku <usa@ruby-lang.org> * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend, diff --git a/enumerator.c b/enumerator.c index e47bfb55be..9de5f23a98 100644 --- a/enumerator.c +++ b/enumerator.c @@ -261,7 +261,7 @@ enumerator_allocate(VALUE klass) enumerator_mark, -1, ptr); } -VALUE +static VALUE enumerator_init(VALUE enum_obj, VALUE obj, VALUE meth, int argc, VALUE *argv) { struct enumerator *ptr = enumerator_ptr(enum_obj); @@ -12586,7 +12586,7 @@ thgroup_list(VALUE group) * ThreadError: can't move from the enclosed thread group */ -VALUE +static VALUE thgroup_enclose(VALUE group) { struct thgroup *data; @@ -643,7 +643,7 @@ mark_entry(ID key, VALUE value, int lev) return ST_CONTINUE; } -void +static void mark_tbl(st_table *tbl, int lev) { if (!tbl) return; @@ -664,7 +664,7 @@ mark_keyvalue(VALUE key, VALUE value, int lev) return ST_CONTINUE; } -void +static void mark_hash(st_table *tbl, int lev) { if (!tbl) return; @@ -237,7 +237,7 @@ static int parser_yyerror(struct parser_params*, const char*); static int yylex(void*, void*); #ifndef RIPPER -#define yyparse parser_yyparse +#define yyparse ruby_yyparse #define yydebug ruby_yydebug static NODE *cond_gen(struct parser_params*,NODE*); diff --git a/regparse.c b/regparse.c index 7a95ded5ea..49063f10b4 100644 --- a/regparse.c +++ b/regparse.c @@ -1104,7 +1104,7 @@ node_new_cclass(void) return node; } -extern Node* +static Node* node_new_cclass_by_codepoint_range(int not, OnigCodePoint sbr[], OnigCodePoint mbr[]) { @@ -76,7 +76,7 @@ sjis_mbc_enc_len(const UChar* p) return EncLen_SJIS[*p]; } -extern int +static int sjis_code_to_mbclen(OnigCodePoint code) { if (code < 256) { @@ -104,7 +104,7 @@ time_init(VALUE time) #define NDIV(x,y) (-(-((x)+1)/(y))-1) #define NMOD(x,y) ((y)-(-((x)+1)%(y))-1) -void +static void time_overflow_p(time_t *secp, time_t *usecp) { time_t tmp, sec = *secp, usec = *usecp; |