mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
date_parse.c, date_strptime.c: ensure symbols static all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a32e4169e1
commit
d1ea2f9d8f
2 changed files with 6 additions and 6 deletions
|
@ -40,9 +40,9 @@ RUBY_EXTERN unsigned long ruby_scan_digits(const char *str, ssize_t len, int bas
|
|||
#define f_sub_bang(s,r,x) rb_funcall(s, rb_intern("sub!"), 2, r, x)
|
||||
#define f_gsub_bang(s,r,x) rb_funcall(s, rb_intern("gsub!"), 2, r, x)
|
||||
|
||||
#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
|
||||
#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
|
||||
#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
|
||||
#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k"")), v)
|
||||
#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k"")))
|
||||
#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k"")))
|
||||
|
||||
#define cstr2num(s) rb_cstr_to_inum(s, 10, 0)
|
||||
#define str2num(s) rb_str_to_inum(s, 10, 0)
|
||||
|
|
|
@ -113,9 +113,9 @@ read_digits(const char *s, VALUE *n, size_t width)
|
|||
}
|
||||
}
|
||||
|
||||
#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
|
||||
#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
|
||||
#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
|
||||
#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k"")), v)
|
||||
#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k"")))
|
||||
#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k"")))
|
||||
|
||||
#define fail() \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue