* load.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5683ad100d
commit
0316582ebc
@ -1,3 +1,7 @@
|
|||||||
|
Sat Dec 18 14:42:29 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* load.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Sat Dec 18 10:07:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Dec 18 10:07:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
|
* compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
|
||||||
|
10
load.c
10
load.c
@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
VALUE ruby_dln_librefs;
|
VALUE ruby_dln_librefs;
|
||||||
|
|
||||||
#define IS_RBEXT(e) (strcmp(e, ".rb") == 0)
|
#define IS_RBEXT(e) (strcmp((e), ".rb") == 0)
|
||||||
#define IS_SOEXT(e) (strcmp(e, ".so") == 0 || strcmp(e, ".o") == 0)
|
#define IS_SOEXT(e) (strcmp((e), ".so") == 0 || strcmp((e), ".o") == 0)
|
||||||
#ifdef DLEXT2
|
#ifdef DLEXT2
|
||||||
#define IS_DLEXT(e) (strcmp(e, DLEXT) == 0 || strcmp(e, DLEXT2) == 0)
|
#define IS_DLEXT(e) (strcmp((e), DLEXT) == 0 || strcmp((e), DLEXT2) == 0)
|
||||||
#else
|
#else
|
||||||
#define IS_DLEXT(e) (strcmp(e, DLEXT) == 0)
|
#define IS_DLEXT(e) (strcmp((e), DLEXT) == 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -745,7 +745,7 @@ void
|
|||||||
Init_load()
|
Init_load()
|
||||||
{
|
{
|
||||||
#undef rb_intern
|
#undef rb_intern
|
||||||
#define rb_intern(str) rb_intern2(str, strlen(str))
|
#define rb_intern(str) rb_intern2((str), strlen(str))
|
||||||
rb_vm_t *vm = GET_VM();
|
rb_vm_t *vm = GET_VM();
|
||||||
static const char var_load_path[] = "$:";
|
static const char var_load_path[] = "$:";
|
||||||
ID id_load_path = rb_intern2(var_load_path, sizeof(var_load_path)-1);
|
ID id_load_path = rb_intern2(var_load_path, sizeof(var_load_path)-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user