Skip to content

Commit

Permalink
version 0.76
Browse files Browse the repository at this point in the history
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.76.tar.gz

Fri May 19 15:33:23 1995  Yukihiro Matsumoto  <matz@ix-02>

	* version 0.76

Fri May 19 00:48:08 1995  Yukihiro Matsumoto  (matz@dyna)

	* string.c (Fstr_each): イテレータブロック中で文字列の変更が行われ
	  たかどうかをチェック.ポインタの値が変わっていれば例外を発生する.

	* ruby-mode.el: ruby-electric-braceの新設.

Thu May 18 12:27:23 1995  Yukihiro Matsumoto  <matz@ix-02>

	* string.c (Fstr_tr): trの置換対象に`\0'を含む時に正しく置換を行わ
	  ないバグがあった.更に置換文字列をASCII順に指定しないと動作しな
	  い問題もあった.結果としてtrを書き換えたので,copyrightの問題は
	  無くなった(と思う).

	* gc.c (gc): the_scopeをマークしていなかったので,ローカル変数が間
	  違って開放される場合があった.

	* gc.c (mark_locations_array): 若干の高速化.

Mon May 15 11:43:49 1995  Yukihiro Matsumoto  <matz@ix-02>

	* ext/extmk.rb.in: Dynamic Loadモジュールのコンパイル用チェックを
	  行うruby script.autoconfに近い感覚で使える.新しいモジュールを
	  提供したい人はextの下にディレクトリを作るだけで良い.必須のファ
	  イルはファイル名の一覧を記録した`MANIFEST'というファイルのみ.必
	  要に応じて`depend'(ファイルの依存関係を記述するファイル gcc -MM
	  の出力),`extconf.rb'(コンパイル用にライブラリと関数の存在チェッ
	  クするファイル)を用意できる.

	* eval.c (rb_call): rubyメソッドの引数チェック時に未初期化の
	  jmp_bufを使用していた.

	* parse.y: `or'と`and'の優先順位を同じにした.

Wed May  3 18:21:36 1995  Yukihiro Matsumoto  (matz@dyna)

	* dln.c: Linuxでは`__.SYMDEF/'であった.

	* dln.c: system callのエラーチェックを忘れていた.

Wed Apr 26 09:50:56 1995  Yukihiro Matsumoto  (matz@ix-02)

	* parse.y: イテレータブロックの変数宣言を`|'で括るようにした.これ
	  でイテレータ変数がない時は宣言そのものを省略できる.文法の変更は
	  久しぶりだ.

Tue Apr 25 12:04:17 1995  Yukihiro Matsumoto  (matz@ix-02)

	* eval.c(require): loadからダイナミックロードの機能を移してきた.
	  さらに拡張子の補完機能を追加してユーザがdln/dlopenの差を意識する
	  必要のないようにした.

	* string.c(sub,sub): イテレータとしても動作するように.

	* object.c: init_object -> initialize.

Mon Apr 24 14:22:39 1995  Yukihiro Matsumoto  (matz@ix-02)

	* NEWS-OS 3.4対応

	* io.c: Solarisのstdioの動作が違うようだ.signalでEOFを返してしま
	  う….perlでも同様の問題がある.

Fri Apr 21 20:04:39 1995  Yukihiro Matsumoto  (matz@ix-02)

	* version 0.75

	* signal.c: trapがなくなっていた.うーむ.

	* configure: Solaris 2.3対応.

	* io.c: #elifのないcppもある.

	* dir.c: autoconf 2.xへの対応が不十分

Thu Apr 20 12:31:24 1995  Yukihiro Matsumoto  (matz@ix-02)

	* version 0.74

	* env.h, gc.c, regex.c: IRIXへの移植対応

	* configure: picを生成するoptionの検出のため,システムタイプをチェッ
	  クするように.

Tue Apr 18 19:08:17 1995  Yukihiro Matsumoto  (matz@ix-02)

	* gc.c(xrealloc): ptr=nilの時,malloc()と同じ働きを

	* array.c(astore): 空の配列の0番目の要素に代入するとsize=0で
	  realloc()を呼んでいた.

	* configure, glob.c: Solaris 2.xでコンパイルできるように
  • Loading branch information
matz authored and k0kubun committed Aug 17, 2019
1 parent b2420d8 commit 8bf1c90
Show file tree
Hide file tree
Showing 66 changed files with 2,585 additions and 2,375 deletions.
97 changes: 97 additions & 0 deletions ChangeLog
@@ -1,3 +1,100 @@
Fri May 19 15:33:23 1995 Yukihiro Matsumoto <matz@ix-02>

* version 0.76

Fri May 19 00:48:08 1995 Yukihiro Matsumoto (matz@dyna)

* string.c (Fstr_each): ���ƥ졼���֥��å����ʸ������ѹ����Ԥ��
�����ɤ���������å����ݥ��󥿤��ͤ��Ѥ�äƤ�����㳰��ȯ�����롥

* ruby-mode.el: ruby-electric-brace�ο��ߡ�

Thu May 18 12:27:23 1995 Yukihiro Matsumoto <matz@ix-02>

* string.c (Fstr_tr): tr���ִ��оݤ�`\0'��ޤ�����������ִ���Ԥ�
�ʤ��Х������ä��������ִ�ʸ�����ASCII��˻��ꤷ�ʤ���ư���
������⤢�ä�����̤Ȥ���tr��񤭴������Τǡ�copyright�������
̵���ʤä�(�Ȼפ�)��

* gc.c (gc): the_scope��ޡ������Ƥ��ʤ��ä��Τǡ����������ѿ�����
��äƳ���������礬���ä���

* gc.c (mark_locations_array): �㴳�ι�®����

Mon May 15 11:43:49 1995 Yukihiro Matsumoto <matz@ix-02>

* ext/extmk.rb.in: Dynamic Load�⥸�塼��Υ���ѥ����ѥ����å���
�Ԥ�ruby script��autoconf�˶ᤤ���ФǻȤ��롥�������⥸�塼���
�󶡤������ͤ�ext�β��˥ǥ��쥯�ȥ����������ɤ���ɬ�ܤΥե�
����ϥե�����̾�ΰ�����Ͽ����`MANIFEST'�Ȥ����ե�����Τߡ�ɬ
�פ˱�����`depend'(�ե�����ΰ�¸�ط��򵭽Ҥ���ե����� gcc -MM
�ν���)��`extconf.rb'(����ѥ����Ѥ˥饤�֥��ȴؿ���¸�ߥ�����
������ե�����)���ѰդǤ��롥

* eval.c (rb_call): ruby�᥽�åɤΰ��������å�����̤�������
jmp_buf����Ѥ��Ƥ�����

* parse.y: `or'��`and'��ͥ���̤�Ʊ���ˤ�����

Wed May 3 18:21:36 1995 Yukihiro Matsumoto (matz@dyna)

* dln.c: Linux�Ǥ�`__.SYMDEF/'�Ǥ��ä���

* dln.c: system call�Υ��顼�����å���˺��Ƥ�����

Wed Apr 26 09:50:56 1995 Yukihiro Matsumoto (matz@ix-02)

* parse.y: ���ƥ졼���֥��å����ѿ������`|'�dz��褦�ˤ���������
�ǥ��ƥ졼���ѿ����ʤ�����������Τ�Τ��ά�Ǥ��롥ʸˡ���ѹ���
�פ��֤����

Tue Apr 25 12:04:17 1995 Yukihiro Matsumoto (matz@ix-02)

* eval.c(require): load��������ʥߥå������ɤε�ǽ��ܤ��Ƥ�����
����˳�ĥ�Ҥ��䴰��ǽ���ɲä��ƥ桼����dln/dlopen�κ���ռ�����
ɬ�פΤʤ��褦�ˤ�����

* string.c(sub,sub): ���ƥ졼���Ȥ��Ƥ�ư���褦�ˡ�

* object.c: init_object -> initialize.

Mon Apr 24 14:22:39 1995 Yukihiro Matsumoto (matz@ix-02)

* NEWS-OS 3.4�б�

* io.c: Solaris��stdio��ư��㤦�褦����signal��EOF���֤��Ƥ���
���ġ�perl�Ǥ�Ʊ�ͤ����꤬���롥

Fri Apr 21 20:04:39 1995 Yukihiro Matsumoto (matz@ix-02)

* version 0.75

* signal.c: trap���ʤ��ʤäƤ����������ࡥ

* configure: Solaris 2.3���

* io.c: #elif�Τʤ�cpp�⤢�롥

* dir.c: autoconf 2.x�ؤ��б����Խ�ʬ

Thu Apr 20 12:31:24 1995 Yukihiro Matsumoto (matz@ix-02)

* version 0.74

* env.h, gc.c, regex.c: IRIX�ؤΰܿ��б�

* configure: pic����������option�θ��ФΤ��ᡤ�����ƥॿ���פ������
������褦�ˡ�

Tue Apr 18 19:08:17 1995 Yukihiro Matsumoto (matz@ix-02)

* gc.c(xrealloc): ptr=nil�λ���malloc()��Ʊ��Ư����

* array.c(astore): ���������0���ܤ����Ǥ����������size=0��
realloc()��Ƥ�Ǥ�����

* configure, glob.c: Solaris 2.x�ǥ���ѥ���Ǥ���褦��

Mon Apr 10 18:36:06 1995 Yukihiro Matsumoto (matz@ix-02)

* version 0.73
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST
Expand Up @@ -12,8 +12,9 @@ class.c
compar.c
configure
configure.in
config.guess
config.sub
defines.h
dict.c
dir.c
dln.c
dln.h
Expand Down
24 changes: 20 additions & 4 deletions Makefile.in
@@ -1,4 +1,4 @@
2SHELL = /bin/sh
SHELL = /bin/sh

#### Start of system configuration section. ####

Expand All @@ -11,6 +11,7 @@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PURIFY=
@SET_MAKE@

CFLAGS = @CFLAGS@
STATIC = @STATIC@
Expand Down Expand Up @@ -74,17 +75,32 @@ $(PROGRAM): $(OBJS)
@rm -f $(PROGRAM)
$(PURIFY) $(CC) $(STATIC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

extmake:; cd ext; make
extmake:; @echo "Compiling ext modules"; \
for extdir in ext/*; do \
test -d $$extdir || continue; \
test -f $$extdir/MANIFEST || continue; \
echo `basename $$extdir`; \
( cd $$extdir; ../../ruby ../extmk.rb; );\
done

$(bindir)/$(PROGRAM): $(PROGRAM)
$(INSTALL_PROGRAM) $(PROGRAM) $(bindir)/$(PROGRAM)

install: $(bindir)/$(PROGRAM)

clean:; @rm -f $(OBJS)
@for extdir in ext/*; do \
test -d $$extdir || continue; \
test -f $$extdir/MANIFEST || continue; \
if test -f $$extdir/Makefile; then \
( cd $$extdir; make clean ); \
fi; \
done

realclean: clean
@rm -f ext/extmk.rb
@rm -f core ruby *~ config.* Makefile

realclean:; @rm -f $(OBJS)
@rm -f core ruby *~ config.status Makefile
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

Expand Down
2 changes: 0 additions & 2 deletions ToDo
Expand Up @@ -3,9 +3,7 @@
* format��ǽ
* here document
* perl�Τ褦��setuid check
* tr����BSD�����ɤ������(�ޤ���copyright��Ϥä��ꤵ����)
* Ŭ�ڤ�signal handling
* dln��COFF�б�(�ޤ���dlopen�б�)
* ruby����������ѿ�hook�μ¸�
* write debugger for ruby
* re-write regex code for speed
Expand Down
18 changes: 13 additions & 5 deletions array.c
Expand Up @@ -6,7 +6,7 @@
$Date: 1995/01/10 10:42:18 $
created at: Fri Aug 6 09:46:12 JST 1993
Copyright (C) 1995 Yukihiro Matsumoto
Copyright (C) 1993-1995 Yukihiro Matsumoto
************************************************/

Expand All @@ -26,7 +26,10 @@ ary_new2(len)

ary->len = 0;
ary->capa = len;
ary->ptr = ALLOC_N(VALUE, len);
if (len == 0)
ary->ptr = Qnil;
else
ary->ptr = ALLOC_N(VALUE, len);

return (VALUE)ary;
}
Expand Down Expand Up @@ -102,8 +105,13 @@ Sary_create(argc, argv, class)

ary->len = argc;
ary->capa = argc;
ary->ptr = ALLOC_N(VALUE, argc);
MEMCPY(ary->ptr, argv, VALUE, argc);
if (argc == 0) {
ary->ptr = Qnil;
}
else {
ary->ptr = ALLOC_N(VALUE, argc);
MEMCPY(ary->ptr, argv, VALUE, argc);
}

return (VALUE)ary;
}
Expand All @@ -119,7 +127,7 @@ astore(ary, idx, val)
}

if (idx >= ary->capa) {
ary->capa = idx + ary->capa/5;
ary->capa = idx + ARY_DEFAULT_SIZE;
REALLOC_N(ary->ptr, VALUE, ary->capa);
}
if (idx > ary->len) {
Expand Down
2 changes: 1 addition & 1 deletion assoc.c
Expand Up @@ -6,7 +6,7 @@
$Date: 1995/01/10 10:30:37 $
created at: Fri Jan 6 10:10:36 JST 1995
Copyright (C) 1995 Yukihiro Matsumoto
Copyright (C) 1993-1995 Yukihiro Matsumoto
************************************************/

Expand Down
6 changes: 3 additions & 3 deletions bignum.c
Expand Up @@ -13,7 +13,7 @@
#include <math.h>

extern VALUE C_Integer;
static VALUE C_Bignum;
VALUE C_Bignum;

#define BDIGITS(x) RBIGNUM(x)->digits
#define BITSPERDIG (sizeof(USHORT)*CHAR_BIT)
Expand Down Expand Up @@ -367,7 +367,7 @@ dbl2big(d)
double u = (d < 0)?-d:d;

while (0 != (long)u) {
u /= BIGRAD;
u /= (double)(BIGRAD);
i++;
}
z = bignew(i, d>=0);
Expand Down Expand Up @@ -591,7 +591,7 @@ bigdivmod(x, y, div, mod)
zds = BDIGITS(z);
if (nx==ny) zds[nx+1] = 0;
while (!yds[ny-1]) ny--;
if ((dd = BIGRAD/(yds[ny-1]+1)) != 1) {
if ((dd = BIGRAD/(int)(yds[ny-1]+1)) != 1) {
y = (struct RBignum*)big_clone(y);
tds = BDIGITS(y);
j = 0;
Expand Down
4 changes: 3 additions & 1 deletion class.c
Expand Up @@ -6,7 +6,7 @@
$Date: 1995/01/12 08:54:44 $
created at: Tue Aug 10 15:05:44 JST 1993
Copyright (C) 1995 Yukihiro Matsumoto
Copyright (C) 1993-1995 Yukihiro Matsumoto
************************************************/

Expand Down Expand Up @@ -99,6 +99,7 @@ rb_define_class(name, super)
id = rb_intern(name);
class = rb_define_class_id(id, super);
st_add_direct(rb_class_tbl, id, class);
rb_set_class_path(class, 0, name);

return class;
}
Expand All @@ -114,6 +115,7 @@ rb_define_class_under(under, name, super)
id = rb_intern(name);
class = rb_define_class_id(id, super);
rb_const_set(under, id, class);
rb_set_class_path(class, under, name);

return class;
}
Expand Down
2 changes: 1 addition & 1 deletion compar.c
Expand Up @@ -6,7 +6,7 @@
$Date: 1994/10/14 06:19:05 $
created at: Thu Aug 26 14:39:48 JST 1993
Copyright (C) 1995 Yukihiro Matsumoto
Copyright (C) 1993-1995 Yukihiro Matsumoto
************************************************/

Expand Down

0 comments on commit 8bf1c90

Please sign in to comment.