зеркало из https://github.com/github/ruby.git
* marshal.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7d0e6734df
Коммит
9035b0e759
|
@ -1,3 +1,7 @@
|
|||
Sun Dec 19 19:15:23 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* marshal.c: parenthesize macro arguments.
|
||||
|
||||
Sat Dec 18 21:52:37 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* vsnprintf.c (BSD_vfprintf): suppress warning: "_WIN32" is not
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#define BITSPERSHORT (2*CHAR_BIT)
|
||||
#define SHORTMASK ((1<<BITSPERSHORT)-1)
|
||||
#define SHORTDN(x) RSHIFT(x,BITSPERSHORT)
|
||||
#define SHORTDN(x) RSHIFT((x),BITSPERSHORT)
|
||||
|
||||
#if SIZEOF_SHORT == SIZEOF_BDIGITS
|
||||
#define SHORTLEN(x) (x)
|
||||
|
@ -246,7 +246,7 @@ w_bytes(const char *s, long n, struct dump_arg *arg)
|
|||
w_nbyte(s, n, arg);
|
||||
}
|
||||
|
||||
#define w_cstr(s, arg) w_bytes(s, strlen(s), arg)
|
||||
#define w_cstr(s, arg) w_bytes((s), strlen(s), (arg))
|
||||
|
||||
static void
|
||||
w_short(int x, struct dump_arg *arg)
|
||||
|
@ -590,7 +590,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
|
|||
st_table *ivtbl = 0;
|
||||
st_data_t num;
|
||||
int hasiv = 0;
|
||||
#define has_ivars(obj, ivtbl) ((ivtbl = rb_generic_ivar_table(obj)) != 0 || \
|
||||
#define has_ivars(obj, ivtbl) (((ivtbl) = rb_generic_ivar_table(obj)) != 0 || \
|
||||
(!SPECIAL_CONST_P(obj) && !ENCODING_IS_ASCII8BIT(obj)))
|
||||
|
||||
if (limit == 0) {
|
||||
|
@ -1002,7 +1002,7 @@ static const rb_data_type_t load_arg_data = {
|
|||
{mark_load_arg, free_load_arg, memsize_load_arg,},
|
||||
};
|
||||
|
||||
#define r_entry(v, arg) r_entry0(v, (arg)->data->num_entries, arg)
|
||||
#define r_entry(v, arg) r_entry0((v), (arg)->data->num_entries, (arg))
|
||||
static VALUE r_entry0(VALUE v, st_index_t num, struct load_arg *arg);
|
||||
static VALUE r_object(struct load_arg *arg);
|
||||
static ID r_symbol(struct load_arg *arg);
|
||||
|
|
Загрузка…
Ссылка в новой задаче