mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dbm/dbm.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0efad539ed
commit
adfcc591a8
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Feb 6 11:29:23 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dbm/dbm.c: parenthesize macro arguments.
|
||||
|
||||
Sat Feb 5 22:01:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
|
||||
|
|
|
@ -37,13 +37,13 @@ closed_dbm(void)
|
|||
}
|
||||
|
||||
#define GetDBM(obj, dbmp) {\
|
||||
Data_Get_Struct(obj, struct dbmdata, dbmp);\
|
||||
if (dbmp == 0) closed_dbm();\
|
||||
if (dbmp->di_dbm == 0) closed_dbm();\
|
||||
Data_Get_Struct((obj), struct dbmdata, (dbmp));\
|
||||
if ((dbmp) == 0) closed_dbm();\
|
||||
if ((dbmp)->di_dbm == 0) closed_dbm();\
|
||||
}
|
||||
|
||||
#define GetDBM2(obj, data, dbm) {\
|
||||
GetDBM(obj, data);\
|
||||
GetDBM((obj), (data));\
|
||||
(dbm) = dbmp->di_dbm;\
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue