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

* ext/sdbm/init.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-25 12:56:34 +00:00
parent 8c6a73ded3
commit 96216554d2
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Fri Mar 25 21:56:10 2011 Tanaka Akira <akr@fsij.org>
* ext/sdbm/init.c: parenthesize macro arguments.
Fri Mar 25 19:39:40 2011 Ben Walton <bwalton@artsci.utoronto.ca>
* test/test_syslog.rb:

View file

@ -29,13 +29,13 @@ closed_sdbm()
}
#define GetDBM(obj, dbmp) {\
Data_Get_Struct(obj, struct dbmdata, dbmp);\
if (dbmp == 0) closed_sdbm();\
if (dbmp->di_dbm == 0) closed_sdbm();\
Data_Get_Struct((obj), struct dbmdata, (dbmp));\
if ((dbmp) == 0) closed_sdbm();\
if ((dbmp)->di_dbm == 0) closed_sdbm();\
}
#define GetDBM2(obj, data, dbm) {\
GetDBM(obj, data);\
GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}