ruby-changes:50452
From: nobu <ko1@a...>
Date: Sun, 25 Feb 2018 22:17:44 +0900 (JST)
Subject: [ruby-changes:50452] nobu:r62574 (trunk): date_parse.c, date_strptime.c: ensure symbols static all
nobu 2018-02-25 22:17:35 +0900 (Sun, 25 Feb 2018) New Revision: 62574 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62574 Log: date_parse.c, date_strptime.c: ensure symbols static all Modified files: trunk/ext/date/date_parse.c trunk/ext/date/date_strptime.c Index: ext/date/date_strptime.c =================================================================== --- ext/date/date_strptime.c (revision 62573) +++ ext/date/date_strptime.c (revision 62574) @@ -113,9 +113,9 @@ read_digits(const char *s, VALUE *n, siz https://github.com/ruby/ruby/blob/trunk/ext/date/date_strptime.c#L113 } } -#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() \ { \ Index: ext/date/date_parse.c =================================================================== --- ext/date/date_parse.c (revision 62573) +++ ext/date/date_parse.c (revision 62574) @@ -40,9 +40,9 @@ RUBY_EXTERN unsigned long ruby_scan_digi https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L40 #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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/