1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/util.h: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-04-09 09:02:03 +00:00
parent 8999a9d415
commit eb7d68819f
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Sat Apr 9 18:01:36 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/util.h: parenthesize macro arguments.
Fri Apr 8 16:01:56 2011 NARUSE, Yui <naruse@ruby-lang.org> Fri Apr 8 16:01:56 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/stringio/stringio.c (strio_getline): check whether str is * ext/stringio/stringio.c (strio_getline): check whether str is

View file

@ -49,9 +49,9 @@ extern "C" {
#pragma GCC visibility push(default) #pragma GCC visibility push(default)
#endif #endif
#define scan_oct(s,l,e) (int)ruby_scan_oct(s,l,e) #define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e)))
unsigned long ruby_scan_oct(const char *, size_t, size_t *); unsigned long ruby_scan_oct(const char *, size_t, size_t *);
#define scan_hex(s,l,e) (int)ruby_scan_hex(s,l,e) #define scan_hex(s,l,e) ((int)ruby_scan_hex((s),(l),(e)))
unsigned long ruby_scan_hex(const char *, size_t, size_t *); unsigned long ruby_scan_hex(const char *, size_t, size_t *);
#if defined(__CYGWIN32__) || defined(_WIN32) #if defined(__CYGWIN32__) || defined(_WIN32)
@ -65,7 +65,7 @@ void ruby_setenv(const char *, const char *);
void ruby_unsetenv(const char *); void ruby_unsetenv(const char *);
#undef setenv #undef setenv
#undef unsetenv #undef unsetenv
#define setenv(name,val) ruby_setenv(name,val) #define setenv(name,val) ruby_setenv((name),(val))
#define unsetenv(name,val) ruby_unsetenv(name); #define unsetenv(name,val) ruby_unsetenv(name);
char *ruby_strdup(const char *); char *ruby_strdup(const char *);
@ -77,7 +77,7 @@ char *ruby_getcwd(void);
double ruby_strtod(const char *, char **); double ruby_strtod(const char *, char **);
#undef strtod #undef strtod
#define strtod(s,e) ruby_strtod(s,e) #define strtod(s,e) ruby_strtod((s),(e))
#if defined _MSC_VER && _MSC_VER >= 1300 #if defined _MSC_VER && _MSC_VER >= 1300
#pragma warning(push) #pragma warning(push)