mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rewrite Symbol#to_sym and #intern in Ruby (#6683)
This commit is contained in:
parent
41b0f641ef
commit
e7443dbbca
Notes:
git
2022-11-16 05:34:59 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
6 changed files with 24 additions and 19 deletions
2
symbol.c
2
symbol.c
|
@ -22,6 +22,7 @@
|
|||
#include "ruby/st.h"
|
||||
#include "symbol.h"
|
||||
#include "vm_sync.h"
|
||||
#include "builtin.h"
|
||||
|
||||
#ifndef USE_SYMBOL_GC
|
||||
# define USE_SYMBOL_GC 1
|
||||
|
@ -1262,3 +1263,4 @@ rb_is_local_name(VALUE name)
|
|||
}
|
||||
|
||||
#include "id_table.c"
|
||||
#include "symbol.rbinc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue