* gc.c (obj_free): make message formant consistent with one from
gc_mark(). [ruby-talk:149668] * sprintf.c (quad_t): prepare quad_t as well. [ruby-talk:149668] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1dbd5e6a3e
commit
bd3404ced0
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 27 23:23:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* gc.c (obj_free): make message formant consistent with one from
|
||||||
|
gc_mark(). [ruby-talk:149668]
|
||||||
|
|
||||||
|
* sprintf.c (quad_t): prepare quad_t as well. [ruby-talk:149668]
|
||||||
|
|
||||||
Wed Jul 27 22:11:37 2005 Kouhei Sutou <kou@cozmixng.org>
|
Wed Jul 27 22:11:37 2005 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* sample/rss/tdiary_plugin: removed. because the plugin
|
* sample/rss/tdiary_plugin: removed. because the plugin
|
||||||
|
6
gc.c
6
gc.c
@ -984,7 +984,7 @@ gc_mark_children(ptr, lev)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rb_bug("rb_gc_mark(): unknown data type %p(%p) %s",
|
rb_bug("rb_gc_mark(): unknown data type 0x%lx(%p) %s",
|
||||||
obj->as.basic.flags & T_MASK, obj,
|
obj->as.basic.flags & T_MASK, obj,
|
||||||
is_pointer_to_heap(obj) ? "corrupted object" : "non object");
|
is_pointer_to_heap(obj) ? "corrupted object" : "non object");
|
||||||
}
|
}
|
||||||
@ -1236,8 +1236,8 @@ obj_free(obj)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rb_bug("gc_sweep(): unknown data type %p(%ld)", obj,
|
rb_bug("gc_sweep(): unknown data type 0x%lx(%p)",
|
||||||
RANY(obj)->as.basic.flags & T_MASK);
|
RANY(obj)->as.basic.flags & T_MASK, obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
parse.y
23
parse.y
@ -3178,7 +3178,8 @@ lambda : {
|
|||||||
lambda_body
|
lambda_body
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_LAMBDA($2, $4);
|
$$ = $2;
|
||||||
|
$$->nd_body = block_append($$->nd_body, $4);
|
||||||
dyna_pop($<vars>1);
|
dyna_pop($<vars>1);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch2(lambda, $2, $4);
|
$$ = dispatch2(lambda, $2, $4);
|
||||||
@ -3186,42 +3187,42 @@ lambda : {
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
f_larglist : '(' f_args rparen
|
f_larglist : '(' f_args opt_bv_decl rparen
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = $2;
|
$$ = NEW_LAMBDA($2, $3);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch1(paren, $2);
|
$$ = dispatch1(paren, $2);
|
||||||
%*/
|
%*/
|
||||||
}
|
}
|
||||||
| f_arg opt_terms
|
| f_arg opt_bv_decl
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_ARGS($1, 0, 0);
|
$$ = NEW_LAMBDA(NEW_ARGS($1, 0, 0), $2);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch4(params, $1, Qnil, Qnil, Qnil);
|
$$ = dispatch4(params, $1, Qnil, Qnil, Qnil);
|
||||||
%*/
|
%*/
|
||||||
}
|
}
|
||||||
| f_arg ',' f_rest_arg opt_terms
|
| f_arg ',' f_rest_arg opt_bv_decl
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_ARGS($1, 0, $3);
|
$$ = NEW_LAMBDA(NEW_ARGS($1, 0, $3), $4);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch4(params, $1, Qnil, $3, Qnil);
|
$$ = dispatch4(params, $1, Qnil, $3, Qnil);
|
||||||
%*/
|
%*/
|
||||||
}
|
}
|
||||||
| f_rest_arg opt_terms
|
| f_rest_arg opt_bv_decl
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_ARGS(0, 0, $1);
|
$$ = NEW_LAMBDA(NEW_ARGS(0, 0, $1), $2);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch4(params, Qnil, Qnil, $1, Qnil);
|
$$ = dispatch4(params, Qnil, Qnil, $1, Qnil);
|
||||||
%*/
|
%*/
|
||||||
}
|
}
|
||||||
| /* none */
|
| opt_bv_decl
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = NEW_ARGS(0, 0, 0);
|
$$ = NEW_LAMBDA(NEW_ARGS(0, 0, 0), $1);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch4(params, Qnil, Qnil, Qnil, Qnil);
|
$$ = dispatch4(params, Qnil, Qnil, Qnil, Qnil);
|
||||||
%*/
|
%*/
|
||||||
|
@ -842,6 +842,7 @@ fmt_setup(buf, c, flags, width, prec)
|
|||||||
# if SIZEOF_LONG_LONG == SIZEOF_VOIDP
|
# if SIZEOF_LONG_LONG == SIZEOF_VOIDP
|
||||||
# define _HAVE_SANE_QUAD_
|
# define _HAVE_SANE_QUAD_
|
||||||
# define _HAVE_LLP64_
|
# define _HAVE_LLP64_
|
||||||
|
# define quad_t LONG_LONG
|
||||||
# define u_quad_t unsigned LONG_LONG
|
# define u_quad_t unsigned LONG_LONG
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user