Skip to content

Commit

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

Mon Apr  3 15:19:41 1995  Yukihiro Matsumoto  (matz@ix-02)

	* regexp.c(re_match): バグがあった.match_2を削除した時にenbugして
	  いたのだった.

Mon Mar 27 15:41:43 1995  Yukihiro Matsumoto  (matz@ix-02)

	* dict.c: Dict->Hashに全面的に移行.

Thu Mar 23 20:30:00 1995  Yukihiro Matsumoto  (matz@ix-02)

	* dbm.c,socket.c: extディレクトリに分離.

	* configure: dln周りのチェックの強化

	* dln.c: initの呼び出しをdlopen()版に合わせた.

Mon Mar 20 17:45:08 1995  Yukihiro Matsumoto  (matz@ix-02)

	* configure: autoconf 2.2に対応(一部).

Fri Mar 17 15:56:44 1995  Yukihiro Matsumoto  (matz@ix-02)

	* dln.c: dlopenのあるマシンではそちらを使うように.ただし,ちゃん
	  と動いているかどうかは自信がない.

	* regex.c: virtual concatinationをやめた.

Thu Mar 16 11:32:57 1995  Yukihiro Matsumoto  (matz@ix-02)

	* version 0.70

	* eval.c,regex.c: gccでのコンパイルエラー.

	* io.c: inplace-editで拡張子が指定されない場合,もとのファイルを削
	  除する.
  • Loading branch information
matz authored and k0kubun committed Aug 17, 2019
1 parent d349889 commit 4e65eab
Show file tree
Hide file tree
Showing 28 changed files with 999 additions and 2,863 deletions.
37 changes: 37 additions & 0 deletions ChangeLog
@@ -1,3 +1,40 @@
Mon Apr 3 15:19:41 1995 Yukihiro Matsumoto (matz@ix-02)

* regexp.c(re_match): �Х������ä���match_2������������enbug����
�����Τ��ä���

Mon Mar 27 15:41:43 1995 Yukihiro Matsumoto (matz@ix-02)

* dict.c: Dict->Hash������Ū�˰ܹԡ�

Thu Mar 23 20:30:00 1995 Yukihiro Matsumoto (matz@ix-02)

* dbm.c,socket.c: ext�ǥ��쥯�ȥ��ʬΥ��

* configure: dln����Υ����å��ζ���

* dln.c: init�θƤӽФ���dlopen()�Ǥ˹�碌����

Mon Mar 20 17:45:08 1995 Yukihiro Matsumoto (matz@ix-02)

* configure: autoconf 2.2���б�(����)��

Fri Mar 17 15:56:44 1995 Yukihiro Matsumoto (matz@ix-02)

* dln.c: dlopen�Τ���ޥ���ǤϤ������Ȥ��褦�ˡ��������������
��ư���Ƥ��뤫�ɤ����ϼ������ʤ���

* regex.c: virtual concatination���᤿��

Thu Mar 16 11:32:57 1995 Yukihiro Matsumoto (matz@ix-02)

* version 0.70

* eval.c,regex.c: gcc�ǤΥ���ѥ��륨�顼��

* io.c: inplace-edit�dz�ĥ�Ҥ����ꤵ��ʤ���硤��ȤΥե�������
�����롥

Wed Mar 15 14:59:18 1995 Yukihiro Matsumoto (matz@ix-02)

* version 0.69
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST
Expand Up @@ -12,7 +12,6 @@ compar.c
configure
configure.in
cons.c
dbm.c
defines.h
dict.c
dir.c
Expand All @@ -30,6 +29,7 @@ gc.c
glob.c
ident.h
inits.c
install-sh
io.c
io.h
main.c
Expand All @@ -50,7 +50,6 @@ ruby.1
ruby.c
ruby.h
signal.c
socket.c
spec
sprintf.c
st.c
Expand Down
43 changes: 13 additions & 30 deletions Makefile.in
@@ -1,49 +1,35 @@
SHELL = /bin/sh
2SHELL = /bin/sh

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

srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
DBMCC = cc
YACC = @YACC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PURIFY=

CFLAGS = -g
CFLAGS = @CFLAGS@
STATIC = @STATIC@
LDFLAGS = $(CFLAGS)
LDFLAGS = $(CFLAGS) @LDFLAGS@
LIBS = @LIBS@
MISSING = @LIBOBJS@ @ALLOCA@

prefix = /usr/local
prefix = @prefix@
binprefix =
exec_prefix = $(prefix)
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin

#### End of system configuration section. ####

HDRS = defines.h \
dln.h \
ident.h \
io.h \
node.h \
re.h \
regex.h \
ruby.h \
st.h \
version.h

OBJS = array.o \
bignum.o \
class.o \
compar.o \
cons.o \
dbm.o \
dict.o \
dir.o \
dln.o \
enum.o \
Expand All @@ -54,6 +40,7 @@ OBJS = array.o \
fnmatch.o \
gc.o \
glob.o \
hash.o \
inits.o \
io.o \
main.o \
Expand All @@ -69,7 +56,6 @@ OBJS = array.o \
regex.o \
ruby.o \
signal.o \
socket.o \
sprintf.o \
st.o \
string.o \
Expand All @@ -82,12 +68,14 @@ OBJS = array.o \

PROGRAM = ruby

all: $(PROGRAM)
all: $(PROGRAM) @EXTMAKE@

$(PROGRAM): $(OBJS)
@rm -f $(PROGRAM)
$(PURIFY) $(CC) $(STATIC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

extmake:; cd ext; make

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

Expand All @@ -100,9 +88,6 @@ realclean:; @rm -f $(OBJS)
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

dbm.o:dbm.c
$(DBMCC) $(CFLAGS) $(CPPFLAGS) -c dbm.c

alloca.o: missing/alloca.c
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/alloca.c

Expand Down Expand Up @@ -140,18 +125,17 @@ bignum.o: bignum.c ruby.h config.h defines.h
class.o: class.c ruby.h config.h defines.h env.h node.h st.h
compar.o: compar.c ruby.h config.h defines.h
cons.o: cons.c ruby.h config.h defines.h
dbm.o: dbm.c ruby.h config.h defines.h
dict.o: dict.c ruby.h config.h defines.h st.h
dir.o: dir.c ruby.h config.h defines.h
dln.o: dln.c config.h defines.h dln.h st.h
dln.o: dln.c config.h defines.h dln.h
enum.o: enum.c ruby.h config.h defines.h
error.o: error.c ruby.h config.h defines.h env.h
etc.o: etc.c ruby.h config.h defines.h
eval.o: eval.c ruby.h config.h defines.h ident.h env.h node.h st.h
eval.o: eval.c ruby.h config.h defines.h ident.h env.h node.h st.h dln.h
file.o: file.c ruby.h config.h defines.h io.h
fnmatch.o: fnmatch.c config.h fnmatch.h
gc.o: gc.c ruby.h config.h defines.h env.h st.h node.h
glob.o: glob.c config.h fnmatch.h
hash.o: hash.c ruby.h config.h defines.h st.h
inits.o: inits.c ruby.h config.h defines.h
io.o: io.c ruby.h config.h defines.h io.h
main.o: main.c
Expand All @@ -164,9 +148,8 @@ random.o: random.c ruby.h config.h defines.h
range.o: range.c ruby.h config.h defines.h
re.o: re.c ruby.h config.h defines.h re.h regex.h
regex.o: regex.c config.h defines.h regex.h util.h
ruby.o: ruby.c ruby.h config.h defines.h re.h regex.h
ruby.o: ruby.c ruby.h config.h defines.h re.h regex.h dln.h
signal.o: signal.c ruby.h config.h defines.h
socket.o: socket.c ruby.h config.h defines.h io.h
sprintf.o: sprintf.c ruby.h config.h defines.h
st.o: st.c config.h st.h
string.o: string.c ruby.h config.h defines.h re.h regex.h
Expand Down
8 changes: 4 additions & 4 deletions array.c
Expand Up @@ -322,21 +322,21 @@ Fary_indexes(ary, args)
struct RArray *ary, *args;
{
VALUE *p, *pend;
VALUE new;
VALUE new_ary;
int i = 0;

if (!args || args->len == 1) {
args = (struct RArray*)rb_to_a(args->ptr[0]);
}

new = ary_new2(args->len);
new_ary = ary_new2(args->len);

p = args->ptr; pend = p + args->len;
while (p < pend) {
astore(new, i++, ary_entry(ary, NUM2INT(*p)));
astore(new_ary, i++, ary_entry(ary, NUM2INT(*p)));
p++;
}
return new;
return new_ary;
}

static VALUE
Expand Down
142 changes: 89 additions & 53 deletions configure.in
Expand Up @@ -3,62 +3,98 @@ AC_INIT(ruby.h)
PROGS="ruby"
AC_SUBST(PROGS)dnl
AC_PROG_CC
AC_GCC_TRADITIONAL
if test "$HOSTTYPE" = sparc; then
if test "$GCC" = 1 ; then
STATIC=-static
else
STATIC=-Bstatic
fi
else
STATIC=
fi
AC_SUBST(STATIC)dnl
AC_PROG_GCC_TRADITIONAL
AC_PROG_YACC
AC_PROG_INSTALL
AC_HAVE_HEADERS(unistd.h stdlib.h syscall.h a.out.h dirent.h\
string.h strings.h)
AC_DIR_HEADER
AC_GETGROUPS_T
AC_RETSIGTYPE
AC_HAVE_LIBRARY(m, [LIBS="$LIBS -lm"])
AC_HAVE_LIBRARY(dbm, [LIBS="$LIBS -ldbm"])
AC_HAVE_LIBRARY(socket, [LIBS="$LIBS -lsocket"])
AC_HAVE_LIBRARY(crypt, [LIBS="$LIBS -lcrypt"])
AC_VFORK
AC_CHECK_HEADERS(unistd.h stdlib.h syscall.h a.out.h dirent.h\
string.h)
AC_HEADER_DIRENT
AC_TYPE_GETGROUPS
AC_TYPE_SIGNAL
AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"])
AC_CHECK_LIB(dbm, dbm_open, AC_DEFINE(HAVE_LIBDBM))
AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_LIBSOKCET))
AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt"])
AC_FUNC_VFORK
AC_REPLACE_FUNCS(memmove mkdir strerror strftime\
strstr strtol strtoul strdup)
AC_HAVE_FUNCS(fmod killpg socket random wait4 waitpid syscall getcwd\
strstr strtoul strdup)
AC_CHECK_FUNCS(fmod killpg socket random wait4 waitpid syscall getcwd\
setruid seteuid setreuid setrgid setegid setregid\
getpriority sigprocmask)
AC_FUNC_CHECK(setenv, [], AC_HAVE_FUNCS(putenv))
getpriority sigprocmask dlopen)
AC_CHECK_FUNC(setenv, [], AC_CHECK_FUNCS(putenv))
if test $ac_cv_func strftime = no; then
AC_STRUCT_TIMEZONE
AC_TRY_LINK([],
[extern int daylight; int i = daylight;], AC_DEFINE(HAVE_DAYLIGHT))
fi

AC_FUNC_ALLOCA
AC_C_BIGENDIAN
AC_STRUCT_ST_BLKSIZE
AC_STRUCT_ST_BLOCKS
AC_STRUCT_ST_RDEV
AC_MSG_CHECKING(std stdio)
AC_CACHE_VAL(rb_cv_stdstdio,
[AC_TRY_COMPILE([#include <stdio.h>],
[stdin->_cnt > 0;],
rb_cv_stdstdio=yes,
rb_cv_stdstdio=no)])
AC_MSG_RESULT($rb_cv_stdstdio)
if test $rb_cv_stdstdio = yes; then
AC_DEFINE(STDSTDIO)
fi
AC_MSG_CHECKING(struct passwd)
AC_EGREP_HEADER(pw_change, pwd.h, AC_DEFINE(PW_CHANGE))
AC_EGREP_HEADER(pw_quota, pwd.h, AC_DEFINE(PW_QUOTA))
AC_EGREP_HEADER(pw_age, pwd.h, AC_DEFINE(PW_AGE))
AC_EGREP_HEADER(pw_class, pwd.h, AC_DEFINE(PW_CLASS))
AC_EGREP_HEADER(pw_comment, pwd.h, AC_DEFINE(PW_COMMENT))
AC_EGREP_HEADER(pw_expire, pwd.h, AC_DEFINE(PW_EXPIRE))
AC_MSG_RESULT(done)
AC_MSG_CHECKING(whether matz's dln works)
cp confdefs.h config.h
if test $ac_cv_header_a_out_h = yes; then
AC_CACHE_VAL(rb_cv_mydln,
[AC_TRY_COMPILE([#include "config.h"],
[],
rb_cv_mydln=yes,
rb_cv_mydln=no)])
AC_MSG_RESULT($rb_cv_mydln)
if test $rb_cv_mydln = yes; then
AC_DEFINE(USE_MY_DLN)
fi
fi

AC_SUBST(STATIC)dnl
AC_SUBST(CCDLFLAGS)dnl
AC_SUBST(EXT)dnl
AC_SUBST(EXTMAKE)dnl

EXTMAKE=
STATIC=

case "$LIBOBJS" in
*) ;;
*strftime*)
AC_TIMEZONE
AC_COMPILE_CHECK([daylight], [],
[extern int daylight; int i = daylight;], AC_DEFINE(HAVE_DAYLIGHT));;
esac
if test $ac_cv_func_dlopen = yes -o $rb_cv_mydln = yes; then
EXTMAKE=extmake
if test "$rb_cv_mydln" = yes; then
if test "$HOSTTYPE" = sparc; then
if test $ac_cv_prog_CC = gcc; then
STATIC=-static
else
STATIC=-Bstatic
fi
fi
EXT=o
CCDLFLAGS=
LDCMD=
else
EXT=so
if test $ac_cv_prog_CC = gcc; then
CCDLFLAGS=-fpic
else
CCDLFLAGS=-pic
fi
fi
fi

AC_ALLOCA
AC_WORDS_BIGENDIAN
AC_ST_BLKSIZE
AC_ST_BLOCKS
AC_ST_RDEV
AC_COMPILE_CHECK([std stdio], [#include <stdio.h>],
[stdin->_cnt > 0;], AC_DEFINE(STDSTDIO))
AC_COMPILE_CHECK([pw_change in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_change;], AC_DEFINE(PW_CHANGE))
AC_COMPILE_CHECK([pw_quota in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_quota;], AC_DEFINE(PW_QUOTA))
AC_COMPILE_CHECK([pw_age in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_age;], AC_DEFINE(PW_AGE))
AC_COMPILE_CHECK([pw_class in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_class;], AC_DEFINE(PW_CLASSS))
AC_COMPILE_CHECK([pw_comment in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_comment;], AC_DEFINE(PW_COMMENT))
AC_COMPILE_CHECK([pw_expire in struct passwd], [#include <pwd.h>],
[struct passwd pw; pw.pw_expire;], AC_DEFINE(PW_EXPIRE))
AC_OUTPUT(Makefile)
mv confdefs.h config.h
cp confdefs.h config.h
AC_OUTPUT(Makefile ext/Makefile)

0 comments on commit 4e65eab

Please sign in to comment.