зеркало из https://github.com/github/ruby.git
* ext/gdbm/gdbm.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
67b9e488dc
Коммит
85caed4721
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 15 21:37:45 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/gdbm/gdbm.c: parenthesize macro arguments.
|
||||
|
||||
Tue Feb 15 20:34:53 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* array.c (ary_join_1): fix array size.
|
||||
|
|
|
@ -95,13 +95,13 @@ closed_dbm(void)
|
|||
}
|
||||
|
||||
#define GetDBM(obj, dbmp) do {\
|
||||
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();\
|
||||
} while (0)
|
||||
|
||||
#define GetDBM2(obj, data, dbm) {\
|
||||
GetDBM(obj, data);\
|
||||
GetDBM((obj), (data));\
|
||||
(dbm) = dbmp->di_dbm;\
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче