diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 05:57:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 05:57:37 +0000 |
commit | 5cc2093ccd5c91fe2eeb0e9a7757985569eed1c2 (patch) | |
tree | e547d54ddfa2c6ec5f099351e375767d9d85ad93 | |
parent | 8366008bcf2e71002c7338f9400968ddac2aad40 (diff) |
* hash.c (recursive_hash): remove unused local variable.
* parse.y (parser_yylex): ditto.
* parse.y (rb_gc_mark_symbols): fix unmatched prototype .
* file.c (rb_get_path): check NUL byte in the path string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | file.c | 5 | ||||
-rw-r--r-- | hash.c | 1 | ||||
-rw-r--r-- | intern.h | 1 | ||||
-rw-r--r-- | parse.y | 3 |
5 files changed, 14 insertions, 6 deletions
@@ -1,3 +1,13 @@ +Mon Sep 25 11:26:25 2006 Yukihiro Matsumoto <[email protected]> + + * hash.c (recursive_hash): remove unused local variable. + + * parse.y (parser_yylex): ditto. + + * parse.y (rb_gc_mark_symbols): fix unmatched prototype . + + * file.c (rb_get_path): check NUL byte in the path string. + Mon Sep 25 08:14:43 2006 Yukihiro Matsumoto <[email protected]> * array.c (rb_ary_shift): should clear shifting top element. @@ -111,11 +111,10 @@ rb_get_path(VALUE obj) to_path = rb_intern("to_path"); } if (rb_respond_to(obj, to_path)) { - obj = rb_funcall(obj, to_path, 0, 0); + tmp = rb_funcall(obj, to_path, 0, 0); } - tmp = obj; - StringValueCStr(tmp); exit: + StringValueCStr(tmp); if (obj != tmp) { rb_check_safe_obj(tmp); } @@ -1416,7 +1416,6 @@ static VALUE recursive_hash(VALUE hash, VALUE dummy, int recur) { int hval; - VALUE n; if (recur) { return LONG2FIX(0); @@ -401,6 +401,7 @@ int rb_is_local_id(ID); int rb_is_junk_id(ID); int rb_symname_p(const char*); int rb_sym_interned_p(VALUE); +void rb_gc_mark_symbols(void); VALUE rb_backref_get(void); void rb_backref_set(VALUE); VALUE rb_lastline_get(void); @@ -6029,7 +6029,6 @@ parser_yylex(struct parser_params *parser) return tOP_ASGN; } if (c == '>') { - enum lex_state_e state = lex_state; lex_state = EXPR_ARG; return tLAMBDA; } @@ -8275,7 +8274,7 @@ Init_sym(void) } void -rb_gc_mark_symbols(int lev) +rb_gc_mark_symbols(void) { rb_mark_tbl(global_symbols.id_sym); } |