8000 *** empty log message *** · documenting-ruby/ruby@fd1d8cd · GitHub
[go: up one dir, main page]

Skip to content

Commit fd1d8cd

Browse files
author
matz
committed
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/RUBY@11 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent f12baed commit fd1d8cd

Some content is hidden

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

78 files changed

+7825
-7737
lines changed

ChangeLog

Lines changed: 463 additions & 3937 deletions
Large diffs are not rendered by default.

MANIFEST

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
COPYING
12
ChangeLog
23
MANIFEST
34
Makefile.in
@@ -32,10 +33,16 @@ glob.c
3233
hash.c
3334
inits.c
3435
install-sh
36+
instruby.rb
37+
intern.h
3538
io.c
3639
io.h
40+
keywords
41+
lex.c
3742
main.c
43+
marshal.c
3844
math.c
45+
mkconfig.rb
3946
node.h
4047
numeric.c
4148
object.c
@@ -51,6 +58,7 @@ regex.h
5158
ruby.1
5259
ruby.c
5360
ruby.h
61+
rubytest.rb
5462
sig.h
5563
signal.c
5664
sprintf.c
@@ -78,34 +86,41 @@ lib/cgi-lib.rb
7886
lib/complex.rb
7987
lib/date.rb
8088
lib/debug.rb
89+
lib/delegate.rb
8190
lib/e2mmap.rb
82-
lib/e2mmap1_0.rb
91+
lib/eregex.rb
8392
lib/find.rb
8493
lib/finalize.rb
8594
lib/ftplib.rb
95+
lib/ftools.rb
8696
lib/getopts.rb
97+
lib/importenv.rb
8798
lib/jcode.rb
8899
lib/mailread.rb
89100
lib/mathn.rb
90101
lib/matrix.rb
102+
lib/mkmf.rb
91103
lib/mutex_m.rb
92104
lib/observer.rb
105+
lib/ostruct.rb
93106
lib/parsearg.rb
94107
lib/parsedate.rb
95108
lib/ping.rb
109+
lib/pstore.rb
96110
lib/rational.rb
111+
lib/shellwords.rb
97112
lib/sync.rb
98113
lib/thread.rb
99114
lib/thwait.rb
100115
lib/tk.rb
101-
lib/tkcore.rb
102116
lib/tkcanvas.rb
103117
lib/tkclass.rb
118+
lib/tkdialog.rb
104119
lib/tkentry.rb
105120
lib/tkscrollbox.rb
106121
lib/tktext.rb
107-
lib/tkthcore.rb
108122
lib/tracer.rb
123+
lib/weakref.rb
109124
missing/alloca.c
110125
missing/crypt.c
111126
missing/dir.h
@@ -126,6 +141,7 @@ missing/strtol.c
126141
missing/strtoul.c
127142
missing/x68.c
128143
sample/biorhythm.rb
144+
sample/cbreak.rb
129145
sample/clnt.rb
130146
sample/dbmtest.rb
131147
sample/dir.rb
@@ -141,7 +157,6 @@ sample/freq.rb
141157
sample/from.rb
142158
sample/fullpath.rb
143159
sample/getopts.test
144-
sample/io.rb
145160
sample/less.rb
146161
sample/list.rb
147162
sample/list2.rb
@@ -155,6 +170,7 @@ sample/occur.rb
155170
sample/occur2.rb
156171
sample/philos.rb
157172
sample/pi.rb
173+
sample/rbc.rb
158174
sample/rcs.awk
159175
sample/rcs.dat
160176
sample/rcs.rb
@@ -180,6 +196,8 @@ win32/Makefile
180196
win32/config.h
181197
win32/ntsetup.bat
182198
win32/ruby.def
199+
win32/sdbm.c
200+
win32/sdbm.h
183201
x68/fconvert.c
184202
x68/select.c
185203
x68/_dtos18.c

Makefile.in

Lines changed: 54 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ VPATH = @srcdir@:@srcdir@/missing
77

88
CC = @CC@
99
YACC = @YACC@
10-
INSTALL = @INSTALL@
11-
INSTALL_PROGRAM = @INSTALL_PROGRAM@
12-
INSTALL_DATA = @INSTALL_DATA@
1310
PURIFY =
1411
@SET_MAKE@
1512

@@ -18,22 +15,14 @@ LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
1815
LIBS = @LIBS@ $(EXTLIBS)
1916
MISSING = @LIBOBJS@ @ALLOCA@
2017

21-
program_transform_name = -e @program_transform_name@
22-
RUBY_INSTALL_NAME = `t='$(program_transform_name)'; echo ruby | sed $$t`
23-
24-
prefix = @prefix@
25-
exec_prefix = @exec_prefix@
26-
bindir = @bindir@
27-
libdir = @libdir@/$(RUBY_INSTALL_NAME)
28-
2918
binsuffix = @binsuffix@
3019

3120
#### End of system configuration section. ####
3221

3322

3423
LIBRUBY = libruby.a
3524

36-
EXTOBJS = dmyext.o
25+
EXTOBJS =
3726

3827
MAINOBJ = main.o
3928

@@ -54,6 +43,7 @@ OBJS = array.o \
5443
inits.o \
5544
io.o \
5645
math.o \
46+
marshal.o \
5747
numeric.o \
5848
object.o \
5949
pack.o \
@@ -75,15 +65,12 @@ OBJS = array.o \
7565
version.o \
7666
$(MISSING)
7767

78-
all: miniruby$(binsuffix) @srcdir@/ext/Setup
79-
@if test -z "$$UNDER_EXTMAKE_RB"; \
80-
then echo "Compiling ext modules"; \
81-
UNDER_EXTMAKE_RB=yes; export UNDER_EXTMAKE_RB; \
82-
cd ext; ../miniruby ./extmk.rb @EXTSTATIC@; fi
68+
all: miniruby$(binsuffix) rbconfig.rb
69+
@cd ext; ../miniruby$(binsuffix) ./extmk.rb @EXTSTATIC@
8370

84-
miniruby$(binsuffix): $(OBJS) $(MAINOBJ) $(EXTOBJS)
71+
miniruby$(binsuffix): $(OBJS) $(MAINOBJ) dmyext.o
8572
@rm -f $@
86-
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(LIBS) -o miniruby
73+
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(OBJS) dmyext.o $(LIBS) -o miniruby
8774

8875
ruby$(binsuffix): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS)
8976
@rm -f $@
@@ -93,36 +80,31 @@ $(LIBRUBY): $(OBJS) dmyext.o
9380
@AR@ rcu $(LIBRUBY) $(OBJS) dmyext.o
9481
@-@RANLIB@ $(LIBRUBY) 2> /dev/null || true
9582

96-
install:; $(INSTALL_PROGRAM) ruby$(binsuffix) $(bindir)/$(RUBY_INSTALL_NAME)$(binsuffix)
97-
@-@STRIP@ $(bindir)/$(RUBY_INSTALL_NAME)$(binsuffix)
98-
@test -d $(libdir) || mkdir $(libdir)
99-
cd ext; ../miniruby ./extmk.rb install
100-
@for rb in `grep '^lib/' @srcdir@/MANIFEST`; do \
101-
$(INSTALL_DATA) @srcdir@/$$rb $(libdir); \
102-
done
83+
install: rbconfig.rb
84+
./miniruby$(binsuffix) $(srcdir)/instruby.rb
10385

104-
clean:; @rm -f $(OBJS) $(LIBRUBY) $(MAINOBJ)
86+
clean:; @rm -f $(OBJS) $(LIBRUBY) $(MAINOBJ) rbconfig.rb
10587
@rm -f ext/extinit.c ext/extinit.o dmyext.o
106-
cd ext; ../miniruby ./extmk.rb clean
88+
@if test -f ./miniruby; then cd ext; ../miniruby ./extmk.rb clean; fi
10789

10890
realclean: clean
109-
@rm -f Makefile ext/extmk.rb ext/config.cache parse.c
91+
@rm -f Makefile ext/extmk.rb ext/config.cache
11092
@rm -f config.cache config.h config.log config.status
111-
@rm -f core ruby$(binsuffix) miniruby$(binsuffix) parse.c *~ *.core gmon.out
112-
113-
test:; @-./ruby @srcdir@/sample/test.rb > ./ruby_test 2>&1; \
114-
if grep '^end of test' ./ruby_test > /dev/null; then \
115-
echo "test succeeded"; \
116-
else \
117-
grep '^sample/test.rb' ./ruby_test; \
118-
grep '^not' ./ruby_test; \
119-
echo "test failed";\
120-
fi;\
121-
rm -f ./ruby_test
93+
@rm -f parse.c lex.c *~ core *.core gmon.out
94+
@rm -f ruby$(binsuffix) miniruby$(binsuffix)
95+
96+
test: miniruby$(binsuffix)
97+
@./miniruby$(binsuffix) $(srcdir)/rubytest.rb
98+
99+
rbconfig.rb: config.status miniruby$(binsuffix)
100+
@./miniruby$(binsuffix) $(srcdir)/mkconfig.rb rbconfig.rb
122101

123102
.c.o:
124103
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
125104

105+
lex.c: keywords
106+
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ keywords > lex.c
107+
126108
parse.c: parse.y
127109
$(YACC) $<
128110
mv -f y.tab.c parse.c
@@ -178,42 +160,40 @@ x68.o: @srcdir@/missing/x68.c
178160
# Prevent GNU make v3 from overflowing arg limit on SysV.
179161
.NOEXPORT:
180162
###
181-
parse.o : parse.y ruby.h defines.h config.h env.h node.h st.h regex.h
163+
parse.o : parse.y ruby.h defines.h config.h intern.h env.h node.h st.h regex.h lex.c
182164
###
183-
array.o: array.c ruby.h config.h defines.h
184-
bignum.o: bignum.c ruby.h config.h defines.h
185-
class.o: class.c ruby.h config.h defines.h node.h st.h
186-
compar.o: compar.c ruby.h config.h defines.h
187-
dir.o: dir.c ruby.h config.h defines.h
165+
array.o: array.c ruby.h config.h defines.h intern.h
166+
bignum.o: bignum.c ruby.h config.h defines.h intern.h
167+
class.o: class.c ruby.h config.h defines.h intern.h node.h st.h
168+
compar.o: compar.c ruby.h config.h defines.h intern.h
169+
dir.o: dir.c ruby.h config.h defines.h intern.h
188170
dln.o: dln.c config.h defines.h dln.h st.h
189171
dmyext.o: dmyext.c
190-
enum.o: enum.c ruby.h config.h defines.h
191-
error.o: error.c ruby.h config.h defines.h env.h
192-
eval.o: eval.c ruby.h config.h defines.h env.h node.h sig.h st.h dln.h
193-
file.o: file.c ruby.h config.h defines.h io.h sig.h
194-
fnmatch.o: fnmatch.c config.h fnmatch.h
195-
gc.o: gc.c ruby.h config.h defines.h env.h sig.h st.h node.h re.h regex.h
196-
glob.o: glob.c config.h fnmatch.h
197-
hash.o: hash.c ruby.h config.h defines.h st.h
198-
inits.o: inits.c ruby.h config.h defines.h
199-
io.o: io.c ruby.h config.h defines.h io.h sig.h
172+
enum.o: enum.c ruby.h config.h defines.h intern.h
173+
error.o: error.c ruby.h config.h defines.h intern.h env.h
174+
eval.o: eval.c ruby.h config.h defines.h intern.h env.h node.h sig.h st.h dln.h
175+
file.o: file.c ruby.h config.h defines.h intern.h io.h sig.h
176+
gc.o: gc.c ruby.h config.h defines.h intern.h env.h sig.h st.h node.h re.h regex.h
177+
hash.o: hash.c ruby.h config.h defines.h intern.h st.h
178+
inits.o: inits.c ruby.h config.h defines.h intern.h
179+
io.o: io.c ruby.h config.h defines.h intern.h io.h sig.h
200180
main.o: main.c
201-
math.o: math.c ruby.h config.h defines.h
202-
numeric.o: numeric.c ruby.h config.h defines.h
203-
object.o: object.c ruby.h config.h defines.h st.h
204-
pack.o: pack.c ruby.h config.h defines.h
205-
process.o: process.c ruby.h config.h defines.h sig.h st.h
206-
random.o: random.c ruby.h config.h defines.h
207-
range.o: range.c ruby.h config.h defines.h
208-
re.o: re.c ruby.h config.h defines.h re.h regex.h
209-
regex.o: regex.c config.h defines.h regex.h util.h
210-
ruby.o: ruby.c ruby.h config.h defines.h re.h regex.h dln.h
211-
signal.o: signal.c ruby.h config.h defines.h sig.h
212-
sprintf.o: sprintf.c ruby.h config.h defines.h
181+
marshal.o: marshal.c ruby.h config.h defines.h intern.h io.h sig.h st.h
182+
math.o: math.c ruby.h config.h defines.h intern.h
183+
numeric.o: numeric.c ruby.h config.h defines.h intern.h
184+
object.o: object.c ruby.h config.h defines.h intern.h st.h
185+
pack.o: pack.c ruby.h config.h defines.h intern.h
186+
process.o: process.c ruby.h config.h defines.h intern.h sig.h st.h
187+
random.o: random.c ruby.h config.h defines.h intern.h
188+
range.o: range.c ruby.h config.h defines.h intern.h
189+
re.o: re.c ruby.h config.h defines.h intern.h re.h regex.h
190+
ruby.o: ruby.c ruby.h config.h defines.h intern.h re.h regex.h dln.h
191+
signal.o: signal.c ruby.h config.h defines.h intern.h sig.h
192+
sprintf.o: sprintf.c ruby.h config.h defines.h intern.h
213193
st.o: st.c config.h st.h
214-
string.o: string.c ruby.h config.h defines.h re.h regex.h
215-
struct.o: struct.c ruby.h config.h defines.h
216-
time.o: time.c ruby.h config.h defines.h
217-
util.o: util.c defines.h config.h util.h
218-
variable.o: variable.c ruby.h config.h defines.h env.h st.h
219-
version.o: version.c ruby.h config.h defines.h version.h
194+
string.o: string.c ruby.h config.h defines.h intern.h re.h regex.h
195+
struct.o: struct.c ruby.h config.h defines.h intern.h
196+
time.o: time.c ruby.h config.h defines.h intern.h
197+
util.o: util.c defines.h intern.h config.h util.h
198+
variable.o: variable.c ruby.h config.h defines.h intern.h env.h st.h
199+
version.o: version.c ruby.h config.h defines.h intern.h version.h

0 commit comments

Comments
 (0)
0