mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* hash.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b61c256181
commit
7b5e72c3a9
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 15 07:11:55 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* hash.c: parenthesize macro arguments.
|
||||
|
||||
Wed Dec 15 04:02:00 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
|
||||
|
|
10
hash.c
10
hash.c
|
@ -2003,7 +2003,7 @@ static int path_tainted = -1;
|
|||
|
||||
static char **origenviron;
|
||||
#ifdef _WIN32
|
||||
#define GET_ENVIRON(e) (e = rb_w32_get_environ())
|
||||
#define GET_ENVIRON(e) ((e) = rb_w32_get_environ())
|
||||
#define FREE_ENVIRON(e) rb_w32_free_environ(e)
|
||||
static char **my_environ;
|
||||
#undef environ
|
||||
|
@ -2019,11 +2019,11 @@ extern char **environ;
|
|||
#define FREE_ENVIRON(e)
|
||||
#endif
|
||||
#ifdef ENV_IGNORECASE
|
||||
#define ENVMATCH(s1, s2) (STRCASECMP(s1, s2) == 0)
|
||||
#define ENVNMATCH(s1, s2, n) (STRNCASECMP(s1, s2, n) == 0)
|
||||
#define ENVMATCH(s1, s2) (STRCASECMP((s1), (s2)) == 0)
|
||||
#define ENVNMATCH(s1, s2, n) (STRNCASECMP((s1), (s2), (n)) == 0)
|
||||
#else
|
||||
#define ENVMATCH(n1, n2) (strcmp(n1, n2) == 0)
|
||||
#define ENVNMATCH(s1, s2, n) (memcmp(s1, s2, n) == 0)
|
||||
#define ENVMATCH(n1, n2) (strcmp((n1), (n2)) == 0)
|
||||
#define ENVNMATCH(s1, s2, n) (memcmp((s1), (s2), (n)) == 0)
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue