1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample
matz 2f8d3bdc21 * array.c (rb_ary_modify): should copy the internal buffer if the
modifying buffer is shared.

* array.c (ary_make_shared): make an internal buffer of an array
  to be shared.

* array.c (rb_ary_shift): avoid sliding an internal buffer by
  using shared buffer.

* array.c (rb_ary_subseq): avoid copying the buffer.

* parse.y (gettable): should freeze __LINE__ string.

* io.c (rb_io_puts): old behavoir restored.  rationale: a) if you
  want to call to_s for arrays, you can just call print a, "\n".
  b) to_s wastes memory if array (and sum of its contents) is
  huge.  c) now any object that has to_ary is treated as an array,
  using rb_check_convert_type().

* hash.c (rb_hash_initialize): now accepts a block to calculate
  the default value. [new]

* hash.c (rb_hash_aref): call "default" method to get the value
  corrensponding to the non existing key.

* hash.c (rb_hash_default): get the default value based on the
  block given to 'new'.  Now it takes an optinal "key" argument.
  "default" became the method to get the value for non existing
  key.  Users may override "default" method to change the hash
  behavior.

* hash.c (rb_hash_set_default): clear the flag if a block is given
  to 'new'

* object.c (Init_Object): undef Data.allocate, left Data.new.

* ext/curses/curses.c (window_scrollok): use RTEST().

* ext/curses/curses.c (window_idlok): ditto.

* ext/curses/curses.c (window_keypad): ditto.

* ext/curses/curses.c (window_idlok): idlok() may return void on
  some platforms; so don't use return value.

* ext/curses/curses.c (window_scrollok): ditto for consistency.

* ext/curses/curses.c: replace FIX2INT() by typechecking NUM2INT().

* parse.y (str_extend): should not process immature #$x and
  #@x interpolation, e.g #@#@ etc.

* enum.c (enum_sort_by): sort_by does not have to be stable always.

* enum.c (enum_sort_by): call qsort directly to gain performance.

* util.c (ruby_qsort): ruby_qsort(qs6) is now native thread safe.

* error.c (rb_sys_fail): it must be a bug if it's called when
  errno == 0.

* regex.c (WC2MBC1ST): should not pass through > 0x80 number in UTF-8.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-10 07:18:16 +00:00
..
biorhythm.rb matz - biorhythm.rb 2000-07-31 09:21:25 +00:00
cal.rb matz 2000-07-18 06:00:45 +00:00
cbreak.rb Initial revision 1998-01-16 12:19:09 +00:00
clnt.rb Initial revision 1998-01-16 12:13:05 +00:00
dbmtest.rb Initial revision 1998-01-16 12:13:05 +00:00
dir.rb Initial revision 1998-01-16 12:13:05 +00:00
dualstack-fetch.rb Synchronize MANIFEST with reality. Add missing files. 2001-05-26 03:38:39 +00:00
dualstack-httpd.rb Synchronize MANIFEST with reality. Add missing files. 2001-05-26 03:38:39 +00:00
eval.rb 2000-03-23 2000-03-23 08:37:35 +00:00
export.rb Initial revision 1998-01-16 12:13:05 +00:00
exyacc.rb This commit was generated by cvs2svn to compensate for changes in r11, 1998-01-16 12:19:22 +00:00
fact.rb This commit was generated by cvs2svn to compensate for changes in r11, 1998-01-16 12:19:22 +00:00
fib.awk Initial revision 1998-01-16 12:13:05 +00:00
fib.pl 2000-02-23 2000-02-23 05:23:12 +00:00
fib.py 1.4.0 1999-08-13 05:45:20 +00:00
fib.rb Initial revision 1998-01-16 12:13:05 +00:00
fib.scm matz 2000-11-27 09:23:38 +00:00
freq.rb 19991129 1999-11-29 06:33:02 +00:00
from.rb matz 2000-10-10 07:03:36 +00:00
fullpath.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00
getopts.test Initial revision 1998-01-16 12:13:05 +00:00
goodfriday.rb matz 2000-07-18 06:00:45 +00:00
irb.rb Merge from irb 0.7.3. 2001-04-30 17:54:55 +00:00
less.rb Initial revision 1998-01-16 12:13:05 +00:00
list.rb 1.4.0 1999-08-13 05:45:20 +00:00
list2.rb Initial revision 1998-01-16 12:13:05 +00:00
list3.rb Initial revision 1998-01-16 12:13:05 +00:00
mine.rb 19991201 1999-12-01 09:24:48 +00:00
mkproto.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00
mpart.rb 20000105 2000-01-05 04:41:21 +00:00
mrshtest.rb 000919 2000-09-19 07:54:28 +00:00
observ.rb This commit was generated by cvs2svn to compensate for changes in r372, 1999-01-20 04:59:39 +00:00
occur.pl Initial revision 1998-01-16 12:13:05 +00:00
occur.rb This commit was generated by cvs2svn to compensate for changes in r372, 1999-01-20 04:59:39 +00:00
occur2.rb matz 2000-10-02 07:48:42 +00:00
philos.rb matz 2000-09-27 09:11:13 +00:00
pi.rb Initial revision 1998-01-16 12:13:05 +00:00
rcs.awk Initial revision 1998-01-16 12:13:05 +00:00
rcs.dat Initial revision 1998-01-16 12:13:05 +00:00
rcs.rb 1.4.0 1999-08-13 05:45:20 +00:00
README 1.4.1 1999-09-16 09:40:33 +00:00
regx.rb Initial revision 1998-01-16 12:13:05 +00:00
rename.rb 19991117 1999-11-17 07:30:37 +00:00
sieve.rb 1.4.0 1999-08-13 05:45:20 +00:00
svr.rb matz 2000-11-16 07:24:21 +00:00
test.rb * array.c (rb_ary_modify): should copy the internal buffer if the 2001-12-10 07:18:16 +00:00
time.rb matz 2000-09-15 06:00:30 +00:00
trojan.rb 1.4.0 1999-08-13 05:45:20 +00:00
tsvr.rb matz 2000-11-16 07:24:21 +00:00
uumerge.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00

README		this file
biorhythm.rb	biorhythm calculator
cal.rb		cal(1) clone
cbreak.rb	no echo done by ioctl
clnt.rb		socket client
dbmtest.rb	test for dbm
dir.rb		directory access
dualstack-fetch.rb	IPv6 demo
dualstack-httpd.rb	IPv6 demo
dstore.rb	object database on dbm
eval.rb		simple evaluator
export.rb	method access example
exyacc.rb	extrace BNF from yacc file
fact.rb		factorial calculator
fib.awk		Fibonacci number (AWK)
fib.pl		Fibonacci number (Perl)
fib.py		Fibonacci number (Python)
fib.rb		Fibonacci number (Ruby)
fib.scm		Fibonacci number (Scheme)
freq.rb		count word occurrence
from.rb		scan mail spool
fullpath.rb	convert ls -lR to fullpath format
getopts.test	test fot getopt.rb
goodfriday.rb	print various christian calendar event.
io.rb		io test
irb.rb		interactive ruby
less.rb		front end for less
list.rb		stupid object sample
list2.rb	stupid object sample
list3.rb	stupid object sample
mine.rb		simple mine sweeper	
mkproto.rb	extract protptype from C
mpart.rb	split file int multi part
mrshtest.rb	test marshal
observ.rb	observer design pattern sample
occur.pl	count word occurrence (Perl)
occur.rb	count word occurrence (Ruby)
occur2.rb	count word occurrence - another style
philos.rb	famous dining philosophers
pi.rb		calculate PI
rcs.awk		random character stereogram (AWK)
rcs.rb		random character stereogram (Ruby)
rcs.dat		data for random character stereogram
rd2html.rb	rd (Ruby Document) to HTML translator
regx.rb		regular expression tester
sieve.rb	sieve of Eratosthenes
svr.rb		socket server
test.rb		test suite used by `make test'
time.rb		/usr/bin/time clone
trojan.rb	simple tool to find file that may be trojan horse.
tsvr.rb		socket server using thread
uumerge.rb	merge files and uudecode them