Skip to content

Commit

Permalink
* load.c: parenthesize macro arguments.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Dec 18, 2010
1 parent 5683ad1 commit 0316582
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Dec 18 14:42:29 2010 Tanaka Akira <[email protected]>

* load.c: parenthesize macro arguments.

Sat Dec 18 10:07:04 2010 Nobuyoshi Nakada <[email protected]>

* compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
Expand Down
10 changes: 5 additions & 5 deletions load.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

VALUE ruby_dln_librefs;

#define IS_RBEXT(e) (strcmp(e, ".rb") == 0)
#define IS_SOEXT(e) (strcmp(e, ".so") == 0 || strcmp(e, ".o") == 0)
#define IS_RBEXT(e) (strcmp((e), ".rb") == 0)
#define IS_SOEXT(e) (strcmp((e), ".so") == 0 || strcmp((e), ".o") == 0)
#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
#define IS_DLEXT(e) (strcmp(e, DLEXT) == 0)
#define IS_DLEXT(e) (strcmp((e), DLEXT) == 0)
#endif


Expand Down Expand Up @@ -745,7 +745,7 @@ void
Init_load()
{
#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();
static const char var_load_path[] = "$:";
ID id_load_path = rb_intern2(var_load_path, sizeof(var_load_path)-1);
Expand Down

0 comments on commit 0316582

Please sign in to comment.