mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Get rid of unnecessary GCC extension
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a15fd1d9f2
								
							
						
					
					
						commit
						5b3c9fc962
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										4
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								gc.c
									
										
									
									
									
								
							| 
						 | 
					@ -893,8 +893,8 @@ static inline void gc_prof_set_heap_info(rb_objspace_t *);
 | 
				
			||||||
#define gc_prof_enabled(objspace) ((objspace)->profile.run && (objspace)->profile.current_record)
 | 
					#define gc_prof_enabled(objspace) ((objspace)->profile.run && (objspace)->profile.current_record)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_VA_ARGS_MACRO
 | 
					#ifdef HAVE_VA_ARGS_MACRO
 | 
				
			||||||
# define gc_report(level, objspace, fmt, ...) \
 | 
					# define gc_report(level, objspace, ...) \
 | 
				
			||||||
    if ((level) > RGENGC_DEBUG) {} else gc_report_body(level, objspace, fmt, ##__VA_ARGS__)
 | 
					    if ((level) > RGENGC_DEBUG) {} else gc_report_body(level, objspace, __VA_ARGS__)
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
# define gc_report if (!(RGENGC_DEBUG)) {} else gc_report_body
 | 
					# define gc_report if (!(RGENGC_DEBUG)) {} else gc_report_body
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										4
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								parse.y
									
										
									
									
									
								
							| 
						 | 
					@ -832,14 +832,14 @@ static ID id_warn, id_warning, id_gets;
 | 
				
			||||||
# define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt)
 | 
					# define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt)
 | 
				
			||||||
# define WARN_ARGS_L(l,fmt,n) WARN_ARGS(fmt,n)
 | 
					# define WARN_ARGS_L(l,fmt,n) WARN_ARGS(fmt,n)
 | 
				
			||||||
# ifdef HAVE_VA_ARGS_MACRO
 | 
					# ifdef HAVE_VA_ARGS_MACRO
 | 
				
			||||||
# define WARN_CALL(args,...) rb_funcall(args,##__VA_ARGS__)
 | 
					# define WARN_CALL(...) rb_funcall(__VA_ARGS__)
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
# define WARN_CALL rb_funcall
 | 
					# define WARN_CALL rb_funcall
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
# define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt)
 | 
					# define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt)
 | 
				
			||||||
# define WARNING_ARGS_L(l, fmt,n) WARNING_ARGS(fmt,n)
 | 
					# define WARNING_ARGS_L(l, fmt,n) WARNING_ARGS(fmt,n)
 | 
				
			||||||
# ifdef HAVE_VA_ARGS_MACRO
 | 
					# ifdef HAVE_VA_ARGS_MACRO
 | 
				
			||||||
# define WARNING_CALL(args,...) rb_funcall(args,##__VA_ARGS__)
 | 
					# define WARNING_CALL(...) rb_funcall(__VA_ARGS__)
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
# define WARNING_CALL rb_funcall
 | 
					# define WARNING_CALL rb_funcall
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								thread.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								thread.c
									
										
									
									
									
								
							| 
						 | 
					@ -192,7 +192,7 @@ vm_living_thread_num(rb_vm_t *vm)
 | 
				
			||||||
#if THREAD_DEBUG
 | 
					#if THREAD_DEBUG
 | 
				
			||||||
#ifdef HAVE_VA_ARGS_MACRO
 | 
					#ifdef HAVE_VA_ARGS_MACRO
 | 
				
			||||||
void rb_thread_debug(const char *file, int line, const char *fmt, ...);
 | 
					void rb_thread_debug(const char *file, int line, const char *fmt, ...);
 | 
				
			||||||
#define thread_debug(fmt, ...) rb_thread_debug(__FILE__, __LINE__, fmt, ##__VA_ARGS__)
 | 
					#define thread_debug(...) rb_thread_debug(__FILE__, __LINE__, __VA_ARGS__)
 | 
				
			||||||
#define POSITION_FORMAT "%s:%d:"
 | 
					#define POSITION_FORMAT "%s:%d:"
 | 
				
			||||||
#define POSITION_ARGS ,file, line
 | 
					#define POSITION_ARGS ,file, line
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue