mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (opt_i_set): should strdup() inplace_edit string.
* eval.c (exec_under): need to push cref too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a0384f498
commit
1c907a9300
5 changed files with 16 additions and 39 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Tue Apr 10 02:24:40 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* io.c (opt_i_set): should strdup() inplace_edit string.
|
||||||
|
|
||||||
|
Mon Apr 9 23:29:54 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (exec_under): need to push cref too.
|
||||||
|
|
||||||
Mon Apr 9 12:05:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon Apr 9 12:05:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (Init_File): should redifine "new" class method.
|
* file.c (Init_File): should redifine "new" class method.
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -4928,6 +4928,7 @@ exec_under(func, under, args)
|
||||||
if (ruby_cbase != under) {
|
if (ruby_cbase != under) {
|
||||||
ruby_frame->cbase = (VALUE)rb_node_newnode(NODE_CREF,under,0,ruby_frame->cbase);
|
ruby_frame->cbase = (VALUE)rb_node_newnode(NODE_CREF,under,0,ruby_frame->cbase);
|
||||||
}
|
}
|
||||||
|
PUSH_CREF(under);
|
||||||
|
|
||||||
mode = scope_vmode;
|
mode = scope_vmode;
|
||||||
SCOPE_SET(SCOPE_PUBLIC);
|
SCOPE_SET(SCOPE_PUBLIC);
|
||||||
|
@ -4936,6 +4937,7 @@ exec_under(func, under, args)
|
||||||
val = (*func)(args);
|
val = (*func)(args);
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
|
POP_CREF();
|
||||||
SCOPE_SET(mode);
|
SCOPE_SET(mode);
|
||||||
POP_FRAME();
|
POP_FRAME();
|
||||||
POP_CLASS();
|
POP_CLASS();
|
||||||
|
|
34
gc.c
34
gc.c
|
@ -1337,37 +1337,3 @@ Init_GC()
|
||||||
rb_gc_unregister_address(&rb_mObSpace);
|
rb_gc_unregister_address(&rb_mObSpace);
|
||||||
finalizers = rb_ary_new();
|
finalizers = rb_ary_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef xmalloc
|
|
||||||
#undef xcalloc
|
|
||||||
#undef xrealloc
|
|
||||||
#undef xfree
|
|
||||||
|
|
||||||
void*
|
|
||||||
xmalloc(size)
|
|
||||||
long size;
|
|
||||||
{
|
|
||||||
return ruby_xmalloc(size);
|
|
||||||
}
|
|
||||||
|
|
||||||
void*
|
|
||||||
xcalloc(n,size)
|
|
||||||
long n,size;
|
|
||||||
{
|
|
||||||
return ruby_xcalloc(n, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
void*
|
|
||||||
xrealloc(ptr,size)
|
|
||||||
void *ptr;
|
|
||||||
long size;
|
|
||||||
{
|
|
||||||
return ruby_xrealloc(ptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
xfree(ptr)
|
|
||||||
void *ptr;
|
|
||||||
{
|
|
||||||
ruby_xfree(ptr);
|
|
||||||
}
|
|
||||||
|
|
3
io.c
3
io.c
|
@ -3324,11 +3324,12 @@ static void
|
||||||
opt_i_set(val)
|
opt_i_set(val)
|
||||||
VALUE val;
|
VALUE val;
|
||||||
{
|
{
|
||||||
|
if (ruby_inplace_mode) free(ruby_inplace_mode);
|
||||||
if (!RTEST(val)) {
|
if (!RTEST(val)) {
|
||||||
ruby_inplace_mode = 0;
|
ruby_inplace_mode = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ruby_inplace_mode = STR2CSTR(val);
|
ruby_inplace_mode = strdup(STR2CSTR(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.6.3"
|
#define RUBY_VERSION "1.6.4"
|
||||||
#define RUBY_RELEASE_DATE "2001-04-09"
|
#define RUBY_RELEASE_DATE "2001-04-10"
|
||||||
#define RUBY_VERSION_CODE 163
|
#define RUBY_VERSION_CODE 164
|
||||||
#define RUBY_RELEASE_CODE 20010409
|
#define RUBY_RELEASE_CODE 20010410
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue