ruby-changes:18729
From: akr <ko1@a...>
Date: Tue, 1 Feb 2011 20:47:11 +0900 (JST)
Subject: [ruby-changes:18729] Ruby:r30755 (trunk): * enc/encdb.c: parenthesize macro arguments.
akr 2011-02-01 20:47:01 +0900 (Tue, 01 Feb 2011) New Revision: 30755 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30755 Log: * enc/encdb.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/enc/encdb.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30754) +++ ChangeLog (revision 30755) @@ -1,3 +1,7 @@ +Tue Feb 1 20:45:44 2011 Tanaka Akira <akr@f...> + + * enc/encdb.c: parenthesize macro arguments. + Tue Feb 1 15:12:26 2011 NAKAMURA Usaku <usa@r...> * test/ruby/test_require.rb (TestRequire#test_require_with_unc): Index: enc/encdb.c =================================================================== --- enc/encdb.c (revision 30754) +++ enc/encdb.c (revision 30755) @@ -14,11 +14,11 @@ int rb_encdb_dummy(const char *name); void rb_encdb_declare(const char *name); void rb_enc_set_base(const char *name, const char *orig); -#define ENC_REPLICATE(name, orig) rb_encdb_replicate(name, orig) -#define ENC_ALIAS(name, orig) rb_encdb_alias(name, orig) +#define ENC_REPLICATE(name, orig) rb_encdb_replicate((name), (orig)) +#define ENC_ALIAS(name, orig) rb_encdb_alias((name), (orig)) #define ENC_DUMMY(name) rb_encdb_dummy(name) #define ENC_DEFINE(name) rb_encdb_declare(name) -#define ENC_SET_BASE(name, orig) rb_enc_set_base(name, orig) +#define ENC_SET_BASE(name, orig) rb_enc_set_base((name), (orig)) void Init_encdb(void) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/