ruby-changes:62375
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 23 Jul 2020 14:30:31 +0900 (JST)
Subject: [ruby-changes:62375] c4fc737f75 (master): include/ruby/util.h: delete unused codes
https://git.ruby-lang.org/ruby.git/commit/?id=c4fc737f75 From c4fc737f755f35ae1ddcf41dd06aad7b23be21da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Wed, 22 Jul 2020 16:11:08 +0900 Subject: include/ruby/util.h: delete unused codes - util.h includes defines.h, - ... which includes ruby/backward/2/stdarg.h, - ... which always defines _. This `#ifndef _` must never happen. diff --git a/include/ruby/util.h b/include/ruby/util.h index 07d9f32..af022da 100644 --- a/include/ruby/util.h +++ b/include/ruby/util.h @@ -14,27 +14,6 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/util.h#L14 #include "ruby/internal/dllexport.h" #include "ruby/defines.h" -#ifndef _ -#ifdef __cplusplus -# ifndef HAVE_PROTOTYPES -# define HAVE_PROTOTYPES 1 -# endif -# ifndef HAVE_STDARG_PROTOTYPES -# define HAVE_STDARG_PROTOTYPES 1 -# endif -#endif -#ifdef HAVE_PROTOTYPES -# define _(args) args -#else -# define _(args) () -#endif -#ifdef HAVE_STDARG_PROTOTYPES -# define __(args) args -#else -# define __(args) () -#endif -#endif - RBIMPL_SYMBOL_EXPORT_BEGIN() #define DECIMAL_SIZE_OF_BITS(n) (((n) * 3010 + 9998) / 9999) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/