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

* ext/curses/curses.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-02-13 22:35:29 +00:00
parent 63ca916ed4
commit bc2abdcac4
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Mon Feb 14 07:34:55 2011 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c: parenthesize macro arguments.
Sun Feb 13 19:41:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skip

View file

@ -83,8 +83,8 @@ no_window(void)
#define GetWINDOW(obj, winp) do {\
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
rb_raise(rb_eSecurityError, "Insecure: operation on untainted window");\
Data_Get_Struct(obj, struct windata, winp);\
if (winp->window == 0) no_window();\
Data_Get_Struct((obj), struct windata, (winp));\
if ((winp)->window == 0) no_window();\
} while (0)
static void
@ -784,8 +784,8 @@ no_mevent(void)
#define GetMOUSE(obj, data) do {\
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
rb_raise(rb_eSecurityError, "Insecure: operation on untainted mouse");\
Data_Get_Struct(obj, struct mousedata, data);\
if (data->mevent == 0) no_mevent();\
Data_Get_Struct((obj), struct mousedata, (data));\
if ((data)->mevent == 0) no_mevent();\
} while (0)
static void