Skip to content

Commit 88b8c7e

Browse files
author
matz
committed
990806
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b516f1f commit 88b8c7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+867
-447
lines changed

ChangeLog

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,78 @@
1+
Fri Aug 6 15:01:07 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
2+
3+
* version 1.3.7 - version 1.4 beta
4+
5+
* ext/socket/socket.c (s_recv): UDPsocket#recvfrom now returns
6+
IPsocket#addr information.
7+
8+
* array.c (rb_ary_subary): ary[-3,3] should not return nil.
9+
10+
Thu Aug 5 10:58:01 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
11+
12+
* eval.c (thread_mark): protect old ruby_frame from GC during it
13+
replaced by eval().
14+
15+
* eval.c (eval): do not modify frame.prev; binding should preserve
16+
information about calling() too.
17+
18+
* eval.c (rb_yield_0): no arity check for mere yield; but only for
19+
Proc#call.
20+
21+
Tue Aug 3 22:07:13 1999 Kazuhiro HIWADA <hiwada@kuee.kyoto-u.ac.jp>
22+
23+
* object.c (rb_mod_clone): should check if iv_tbl, m_tbl are
24+
initialized.
25+
26+
Tue Aug 3 19:03:02 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
27+
28+
* hash.c (rb_any_cmp): use rb_with_disable_interrupt() to ensure
29+
clearance of rb_prohibit_interrupt even on failure.
30+
31+
* eval.c (rb_with_disable_interrupt): new function added.
32+
33+
Sat Jul 31 23:23:44 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
34+
35+
* eval.c (rb_thread_create_0): set THREAD_RAISED flag on thread
36+
termination by exception.
37+
38+
* eval.c (rb_thread_join): `$!' may not be nil for the threads
39+
created in rescue clause.
40+
41+
* eval.c (rb_thread_status): ditto.
42+
43+
* eval.c (rb_thread_join): should re-raise exception for already
44+
dead threads too.
45+
46+
Fri Jul 30 17:56:54 1999 GOTO Kentaro <gotoken@math.sci.hokudai.ac.jp>
47+
48+
* object.c (rb_mod_ge): wrong comparison.
49+
50+
Fri Jul 30 12:15:44 1999 Katsuyuki Komatsu <komatsu@sarion.co.jp>
51+
52+
* ext/tcltklib/extconf.rb: win32 support.
53+
54+
* lib/mkmf.rb: use append_library().
55+
56+
* ext/extmk.rb.in: ditto.
57+
58+
Fri Jul 30 02:11:48 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
59+
60+
* array.c (rb_ary_delete): should return nil for deleting non
61+
existing item.
62+
63+
* io.c (rb_io_close): call rb_sys_wait() on explicit close.
64+
65+
* io.c (rb_io_fptr_close): do not call rb_sys_wait() on finalize.
66+
67+
* eval.c (yield_under_i): cbase context should be maintaind for
68+
Module#module_eval(). suggested by <inaba@st.rim.or.jp>.
69+
70+
Wed Jul 28 01:18:28 1999 WATANABE Hirofumi <watanabe@ase.ptg.sony.co.jp>
71+
72+
* Makefile.in: add -I$(hdrdir)/lib to install using ftools.
73+
74+
* util.c: use HAVE_FCNTL_H, not HAVE_FCNTL
75+
176
Wed Jul 28 18:24:45 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
277

378
* version 1.3.6 - version 1.4 alpha
@@ -31,6 +106,11 @@ Thu Jul 22 19:37:22 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
31106
* eval.c (rb_thread_join): get_backtrace() may retrun Qnil.
32107
typecheck added.
33108

109+
Tue Jul 20 14:36:43 1999 WATANABE Hirofumi <watanabe@ase.ptg.sony.co.jp>
110+
111+
* range.c (range_each): do not treat String specially (for future
112+
override).
113+
34114
Tue Jul 20 02:28:34 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
35115

36116
* io.c (rb_gets): $_ should be nil, when get returns nil.

MANIFEST

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ ext/Setup.emx
8383
ext/Setup.nt
8484
ext/Setup.x68
8585
ext/aix_mksym.rb
86-
ext/cygwin32_ld.rb
86+
ext/mswin32_extmk.rb
8787
ext/extmk.rb.in
88-
ext/extmk.rb.nt
8988
lib/CGI.rb
9089
lib/English.rb
9190
lib/Env.rb

Makefile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h
234234
error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h env.h
235235
eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h node.h env.h rubysig.h st.h dln.h
236236
file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h
237-
fnmatch.@OBJEXT@: fnmatch.c config.h fnmatch.h
238237
gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.h rubysig.h st.h node.h env.h re.h regex.h
239238
hash.@OBJEXT@: hash.c ruby.h config.h defines.h intern.h st.h rubysig.h util.h
240239
inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h

README.EXT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This document explains how to make extention libraries for Ruby.
44

5-
1��Basic knowledge
5+
1. Basic knowledge
66

77
In C, variables have types and data do not have types. In contrast,
88
Ruby variables do not have static type and data themselves have
@@ -417,7 +417,7 @@ The pointer to the structure will be assigned to the variable sval.
417417

418418
See example below for detail.
419419

420-
4��Example - Creating dbm extension
420+
4. Example - Creating dbm extension
421421

422422
OK, here's the example to make extension library. This is the
423423
extension to access dbm. The full source is included in ext/

array.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,12 @@ rb_ary_subary(ary, beg, len)
355355
{
356356
VALUE ary2;
357357

358-
if (len < 0) return Qnil;
359358
if (beg > RARRAY(ary)->len) return Qnil;
360-
if (beg < 0) return Qnil;
359+
if (beg < 0) {
360+
len += beg;
361+
beg = 0;
362+
}
363+
if (len < 0) return Qnil;
361364
if (beg + len > RARRAY(ary)->len) {
362365
len = RARRAY(ary)->len - beg;
363366
}

config_h.dj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define HAVE_CHSIZE 1
5454
#define HAVE_TIMES 1
5555
#define HAVE_UTIMES 1
56-
#define HAVE_FCNTL 1
56+
#define HAVE_FCNTL_H 1
5757
/*#define HAVE_SETITIMER 1*/
5858
#define HAVE_GETGROUPS 1
5959
#define HAVE_SIGPROCMASK 1

config_s.dj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ s%@AR@%ar%g
3232
s%@INSTALL_PROGRAM@%${INSTALL}%g
3333
s%@INSTALL_DATA@%${INSTALL} -m 644%g
3434
s%@SET_MAKE@%%g
35-
s%@LIBOBJS@% crypt.o flock.o snprintf.o%g
35+
s%@LIBOBJS@% crypt.o flock.o fnmatch.o snprintf.o%g
3636
s%@ALLOCA@%%g
3737
s%@DEFAULT_KCODE@%%g
3838
s%@EXEEXT@%.exe%g
@@ -47,7 +47,9 @@ s%@EXTSTATIC@%%g
4747
s%@binsuffix@%.exe%g
4848
s%@setup@%Setup%g
4949
s%@LIBRUBY@%libruby.a%g
50+
s%@LIBRUBY_A@%libruby.a%g
5051
s%@LIBRUBYARG@%libruby.a%g
52+
s%@LIBRUBY_SO@%%g
5153
s%@SOLIBS@%%g
5254
s%@srcdir%.%g
5355
s%@arch@%i386-djgpp%g

configure

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,29 +4495,24 @@ EOF
44954495
fi
44964496
LIBOBJS="$LIBOBJS x68.o"
44974497
CFLAGS="$CFLAGS -fansi-only -cc1-stack=196608 -cpp-stack=2694144"
4498-
binsuffix=.x
4498+
EXEEXT=.x
4499+
OBJEXT=o
44994500
setup=Setup.x68
45004501
;;
45014502
os2_emx)
45024503
LIBOBJS="$LIBOBJS os2.o"
4503-
binsuffix=.exe
45044504
setup=Setup.emx
45054505
;;
45064506
cygwin*)
4507-
binsuffix=.exe
45084507
setup=Setup
45094508
;;
45104509
*)
4511-
binsuffix=
45124510
setup=Setup
45134511
;;
45144512
esac
45154513

45164514

45174515

4518-
4519-
4520-
45214516
if test "$prefix" = NONE; then
45224517
prefix=$ac_default_prefix
45234518
fi
@@ -4887,7 +4882,6 @@ s%@LDSHARED@%$LDSHARED%g
48874882
s%@DLEXT@%$DLEXT%g
48884883
s%@STRIP@%$STRIP%g
48894884
s%@EXTSTATIC@%$EXTSTATIC%g
4890-
s%@binsuffix@%$binsuffix%g
48914885
s%@setup@%$setup%g
48924886
s%@LIBRUBY_LDSHARED@%$LIBRUBY_LDSHARED%g
48934887
s%@LIBRUBY_DLDFLAGS@%$LIBRUBY_DLDFLAGS%g

configure.bat

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
@echo off
2-
sed -n "/VERSION/s/[^0-9.]\+//gp" < version.h > version.out
3-
cut -d. -f1 version.out > major.out
4-
cut -d. -f2 version.out > minor.out
5-
cut -d. -f3 version.out > teeny.out
6-
sed "s/^/s,@MAJOR@,/;s/$/,/g" major.out >> top.sed
7-
sed "s/^/s,@MINOR@,/;s/$/,/g" minor.out >> top.sed
8-
sed "s/^/s,@TEENY@,/;s/$/,/g" teeny.out >> top.sed
9-
rm version.out major.out minor.out teeny.out
2+
grep -qs MAJOR top.sed
3+
if errorlevel 1 goto seen
4+
if errorlevel 0 goto not_seen
5+
:seen
6+
sed -n "/VERSION /s/[^0-9.]//gp" < version.h > version.out
7+
cut -d. -f1 version.out > major.out
8+
cut -d. -f2 version.out > minor.out
9+
cut -d. -f3 version.out > teeny.out
10+
sed "s/^/s,@MAJOR@,/;s/$/,/g" major.out >> top.sed
11+
sed "s/^/s,@MINOR@,/;s/$/,/g" minor.out >> top.sed
12+
sed "s/^/s,@TEENY@,/;s/$/,/g" teeny.out >> top.sed
13+
rm version.out major.out minor.out teeny.out
14+
:not_seen
1015
sed -f top.sed < Makefile.in > Makefile
1116
sed -f top.sed < ext\extmk.rb.in > ext\extmk.rb
1217
copy ext\Setup.dj ext\Setup

configure.in

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,28 +596,23 @@ rb_cv_missing_fconvert=yes, rb_cv_missing_fconvert=no, rb_cv_missing_fconvert=no
596596
fi
597597
LIBOBJS="$LIBOBJS x68.o"
598598
CFLAGS="$CFLAGS -fansi-only -cc1-stack=196608 -cpp-stack=2694144"
599-
binsuffix=.x
599+
EXEEXT=.x
600+
OBJEXT=o
600601
setup=Setup.x68
601602
;;
602603
dnl OS/2 environment w/ Autoconf 2.1x for EMX
603604
os2_emx)
604605
LIBOBJS="$LIBOBJS os2.o"
605-
binsuffix=.exe
606606
setup=Setup.emx
607607
;;
608608
cygwin*)
609-
binsuffix=.exe
610609
setup=Setup
611610
;;
612611
*)
613-
binsuffix=
614612
setup=Setup
615613
;;
616614
esac
617615

618-
619-
620-
AC_SUBST(binsuffix)
621616
AC_SUBST(setup)
622617

623618
if test "$prefix" = NONE; then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy