зеркало из https://github.com/github/ruby.git
* 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:
Родитель
0efad539ed
Коммит
adfcc591a8
|
@ -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;\
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче