1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1999-12-14 06:50:43 +00:00
parent ea14c6e09a
commit d6657f1c07
11 changed files with 28 additions and 12 deletions

View file

@ -1,3 +1,13 @@
Sat Dec 11 03:34:38 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
* gc.c (mark_hashentry): key should be VALUE, not ID.
* io.c (argf_eof): should check next_p too.
Thu Dec 9 18:09:13 1999 EGUCHI Osamu <eguchi@shizuokanet.ne.jp>
* error.c (exc_set_backtrace): forgot to declare a VALUE argument.
Tue Dec 7 18:25:26 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
* stable version 1.4.3 released.

2
README
View file

@ -135,7 +135,7 @@ You can redistribute it and/or modify it under either the terms of the GPL
The URL of the Ruby home-page is:
http://www.netlab.co.jp/ruby/
http://www.ruby-lang.org/
* The Author

View file

@ -44,7 +44,7 @@ Ruby
RubyのホームページのURLは
http://www.netlab.co.jp/ruby/jp/
http://www.ruby-lang.org/
です.

View file

@ -386,6 +386,7 @@ check_backtrace(bt)
static VALUE
exc_set_backtrace(exc, bt)
VALUE exc;
VALUE bt;
{
return rb_iv_set(exc, "bt", check_backtrace(bt));
}

View file

@ -2150,7 +2150,7 @@ class TkListbox<TkTextWin
def nearest(y)
tk_send('nearest', y).to_i
end
def size(y)
def size
tk_send('size').to_i
end
def selection_anchor(index)
@ -2159,8 +2159,8 @@ class TkListbox<TkTextWin
def selection_clear(first, last=None)
tk_send 'selection', 'clear', first, last
end
def selection_includes
bool(tk_send('selection', 'includes'))
def selection_includes(index)
bool(tk_send('selection', 'includes', index))
end
def selection_set(first, last=None)
tk_send 'selection', 'set', first, last

2
gc.c
View file

@ -370,7 +370,7 @@ rb_mark_tbl(tbl)
static int
mark_hashentry(key, value)
ID key;
VALUE key;
VALUE value;
{
rb_gc_mark(key);

2
io.c
View file

@ -3070,6 +3070,8 @@ argf_eof()
{
if (init_p == 0 && !next_argv())
return Qtrue;
if (next_p == -1)
return Qtrue;
if (TYPE(current_file) != T_FILE) {
return argf_forward();
}

4
ruby.h
View file

@ -89,7 +89,7 @@ extern "C" {
---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
#endif
typedef unsigned long VALUE;
typedef unsigned int ID;
typedef unsigned long ID;
#ifdef __STDC__
# include <limits.h>
@ -117,6 +117,8 @@ typedef unsigned int ID;
#define INT2FIX(i) (VALUE)(((long)(i))<<1 | FIXNUM_FLAG)
VALUE rb_int2inum _((long));
#define INT2NUM(v) rb_int2inum(v)
VALUE rb_uint2inum _((unsigned long));
#define UINT2NUM(v) rb_uint2inum(v)
#define FIX2LONG(x) RSHIFT((long)x,1)
#define FIX2ULONG(x) (((unsigned long)(x))>>1)

View file

@ -81,7 +81,7 @@ class Board
elsif y < 0 then 0
elsif y >= @hi then 0
else
@data[x*@wi+x]
@data[y*@wi+x]
end
end
def count(x,y)

View file

@ -224,6 +224,7 @@ static VALUE
rb_struct_s_def(argc, argv, klass)
int argc;
VALUE *argv;
VALUE klass;
{
VALUE name, rest;
long i;

View file

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.4.3"
#define RUBY_RELEASE_DATE "1999-12-08"
#define RUBY_VERSION_CODE 143
#define RUBY_RELEASE_CODE 19991208
#define RUBY_VERSION "1.4.4"
#define RUBY_RELEASE_DATE "1999-12-14"
#define RUBY_VERSION_CODE 144
#define RUBY_RELEASE_CODE 19991214