diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-02 15:05:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-02 15:05:27 +0000 |
commit | ccf5372b252a229ddb6693db132edc013419ccdc (patch) | |
tree | 2d0619ed60d5749e05e9479c5aa1cab82959266e /gc.c | |
parent | 2156870525be05f0bd769af141c3f6cff9fff8c4 (diff) | |
download | ruby-ccf5372b252a229ddb6693db132edc013419ccdc.tar.gz |
* object.c (Init_Object): move symbol related code to string.c
* string.c (Init_String): Symbol as subclass of String.
* parse.y (rb_intern2): handle symbol as strings.
* string.c (str_new): substring of symbols are mere strings, not
symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1381,6 +1381,7 @@ garbage_collect(void) (VALUE*)((char*)rb_gc_stack_start + 2)); #endif rb_gc_mark_threads(); + rb_gc_mark_symbols(); /* mark protected global variables */ for (list = global_List; list; list = list->next) { |