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