mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	date_core.c: ensure symbols static all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									d3d845396e
								
							
						
					
					
						commit
						a32e4169e1
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -3679,9 +3679,11 @@ date_s_today(int argc, VALUE *argv, VALUE klass)
 | 
			
		|||
#define ref_hash0(k) rb_hash_aref(hash, k)
 | 
			
		||||
#define del_hash0(k) rb_hash_delete(hash, 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 sym(x) ID2SYM(rb_intern(x""))
 | 
			
		||||
 | 
			
		||||
#define set_hash(k,v) set_hash0(sym(k), v)
 | 
			
		||||
#define ref_hash(k) ref_hash0(sym(k))
 | 
			
		||||
#define del_hash(k) del_hash0(sym(k))
 | 
			
		||||
 | 
			
		||||
static VALUE
 | 
			
		||||
rt_rewrite_frags(VALUE hash)
 | 
			
		||||
| 
						 | 
				
			
			@ -3718,8 +3720,6 @@ rt_rewrite_frags(VALUE hash)
 | 
			
		|||
    return hash;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define sym(x) ID2SYM(rb_intern(x))
 | 
			
		||||
 | 
			
		||||
static VALUE d_lite_year(VALUE);
 | 
			
		||||
static VALUE d_lite_wday(VALUE);
 | 
			
		||||
static VALUE d_lite_jd(VALUE);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue