akr
126cd9d01e
add test for [ruby-dev:24460]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-09 11:53:16 +00:00
nobu
225f22cd9a
* io.c (rb_io_getline): should not treat char as negative value.
...
[ruby-dev:24460]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-09 10:51:11 +00:00
aamine
e9f4ad970a
* lib/fileutils.rb (fu_traverse): return value of Dir.entries is reliable. (pass $SAFE=1)
...
* lib/fileutils.rb (remove_dir): return value of Dir.foreach is reliable. (pass $SAFE=1)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-08 12:37:19 +00:00
eban
1f1d15f899
* 2004-10-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-08 04:08:06 +00:00
matz
5de7917c8e
* pack.c (pack_pack): pointer modification check before each
...
iteration. [ruby-dev:24445]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-08 03:36:54 +00:00
nagai
d2eea09f4a
* ext/tk/lib/tk/optiondb.rb: make it more secure
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 16:14:29 +00:00
nagai
c2f8cec766
* ext/tk/lib/tk/scrollbar.rb: When 'set' operation, a scrollbar cannot
...
propagate view port information from the source widget (that calls
'set') to other assigned widgets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 14:50:59 +00:00
nagai
046d4e7ee1
* ext/tk/lib/tk.rb: When CHILDKILLED and so on, Tk.errorCode returns
...
a Fixnum for 2nd element (it's pid) of the return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 08:38:03 +00:00
matz
607314595a
* io.c (io_read): should freeze buffer before thread context
...
switch. [ruby-dev:24442]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 05:54:28 +00:00
matz
6299619da9
* pack.c (pack_unpack): string conversion should at the top of the
...
method. [ruby-dev:24439]
* io.c (io_read): buffer should be frozen only after the length
check. [ruby-dev:24440]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 04:06:41 +00:00
akr
2ed1cdbb0d
fix typo in document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-07 02:33:37 +00:00
nobu
790fa9041a
* ext/stringio/stringio.c: use FMODE_APPEND.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 17:57:19 +00:00
eban
cb5a59ebd5
* 2004-10-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 16:11:52 +00:00
nagai
fd6f4e20cc
* ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCode
...
* ext/tk/lib/tkextlib/bwidget.rb: bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 16:08:45 +00:00
matz
7f5cf7a100
* io.c (rb_io_s_sysopen): preserve path in the buffer allocated by
...
ALLOCA_N() to prevent modification. [ruby-dev:24438]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 15:10:43 +00:00
eban
1af24252b8
* 2004-10-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 08:04:23 +00:00
eban
9a2c853b97
* io.c (rb_io_modenum_mode): typo fix again.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 08:02:34 +00:00
matz
fbb88b011a
* io.c (rb_io_mode_flags): preserve append mode flag.
...
[ruby-dev:24436]
* io.c (rb_io_modenum_mode): do not use external output buffer.
* string.c (rb_str_justify): differ pointer retrieval to prevent
padding string modification. [ruby-dev:24434]
* range.c (range_each_func): allow func to terminate loop by
returning RANGE_EACH_BREAK.
* range.c (member_i): use RANGE_EACH_BREAK. [ruby-talk:114959]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-06 07:40:06 +00:00
eban
3d17082a50
* io.c (rb_io_flags_mode): typo fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-05 09:13:49 +00:00
eban
ef8cfca7f9
2004-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-05 02:31:42 +00:00
matz
c800d0b75d
* io.c (rb_fopen): mode string copy at the lowest level.
...
* io.c (rb_io_flags_mode): requires output buffer no more. no
allocation needed.
* array.c (rb_ary_index): takes a block to compare items in an
array. [ruby-talk:113069] [Ruby2]
* array.c (rb_ary_rindex): ditto.
* marshal.c (r_byte): retrieve pointer from string value for each
time. [ruby-dev:24404]
* marshal.c (r_bytes0): ditto.
* enum.c (sort_by_i): re-entrance check added. [ruby-dev:24399]
* io.c (io_read): should freeze all reading buffer.
[ruby-dev:24400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-05 01:37:46 +00:00
nobu
889a620b76
* io.c (rb_file_open_internal, rb_io_reopen): fname might be altered
...
while GC. [ruby-dev:24408]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-04 05:04:22 +00:00
eban
2547b0c073
2004-10-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-04 04:01:47 +00:00
nagai
581ca6097e
* ext/tk/lib/tk/image.rb: bug fix
...
* ext/tk/lib/tk/optiondb.rb: support definition of command resources on widgets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-04 03:56:00 +00:00
shugo
6e8ae612ba
* lib/net/imap.rb (TEXT_REGEXP): allow 8-bit characters for the german
...
version of Microsoft Exchange Server.
* lib/net/imap.rb (RTEXT_REGEXP): ditto.
* lib/net/imap.rb (CTEXT_REGEXP): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 12:21:35 +00:00
eban
92578ab007
2004-10-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:20:55 +00:00
eban
97ad41b50b
* MANIFEST: add test/ruby/test_string.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:20:40 +00:00
akr
2bd403488d
test String#sum for bits=0..7.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:09:54 +00:00
akr
129c02057e
add test for String#sum.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:02:55 +00:00
nobu
3e7c55fb00
* parse.y (local_vars): moved to struct parser_params.
...
[ruby-dev:24391]
* parser.y (stmts): remove suspicious NODE_BEGIN. [ruby-dev:24390]
* node.h (NEW_DVAR): extra semicolon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-02 11:34:13 +00:00
matz
77636d0364
* string.c (rb_str_sum): should use bignums when bits is greater
...
than or equals to sizeof(long)*CHAR_BITS. [ruby-dev:24395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-02 11:30:40 +00:00
matz
779f3d6d11
* string.c (rb_str_sum): wrong cast caused wrong result.
...
[ruby-dev:24385]
* enum.c (enum_sort_by): hide temporary array from
ObjectSpace.each_object. [ruby-dev:24386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-02 07:57:32 +00:00
matz
9d923be604
* string.c (rb_str_sum): check was done with false pointer.
...
[ruby-dev:24383]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-02 03:49:15 +00:00
eban
7665754a5a
2004-10-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-01 16:03:06 +00:00
matz
1b4d97ddba
* string.c (rb_str_sum): string may be altered. [ruby-dev:24381]
...
* eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe
sourcefile string modification. [ruby-dev:24373]
* io.c (io_read): block string buffer modification during
rb_io_fread() by freezing it temporarily. [ruby-dev:24366]
* io.c (rb_io_s_popen): mode argument may be altered.
[ruby-dev:24375]
* file.c (rb_file_s_basename): ext argument may be altered.
[ruby-dev:24377]
* enum.c (enum_sort_by): use NODE instead of 2 element arrays.
[ruby-dev:24378]
* string.c (rb_str_chomp_bang): StringValue() may change the
receiver. [ruby-dev:24371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-01 15:56:05 +00:00
nagai
8e292f6285
* ext/tk/lib/tk/grid.rb: revive TkGrid.grid
...
* ext/tk/lib/tk/pack.rb: revive TkPack.pack
* ext/tk/lib/tk/place.rb: revive TkPlace.place
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-01 02:27:03 +00:00
eban
c6655d7068
2004-09-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-30 01:56:09 +00:00
nagai
83185f9ff0
* ext/tcltklib/tcltklib.c (ip_init): bug fix
...
* ext/tk/tkutil.c (get_eval_string_core): accept a Regexp object
* ext/tk/lib/multi-tk.rb: fix bug on 'exit' operation
* ext/tk/lib/tk/text.rb: 'tksearch' accepts a Regexp object as a
matting pattern argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-29 15:54:32 +00:00
matz
30116ff8c2
* array.c (rb_ary_delete): comparison may change the capacity.
...
[ruby-dev:24348]
* array.c (rb_ary_fill): fill should honor length argument.
[ruby-dev:24346]
* array.c (rb_ary_replace): should not use ptr from shared array.
[ruby-dev:24345]
* ext/socket/socket.c (s_accept): don't retry for EWOULDBLOCK.
[ruby-talk:113807]
* array.c (flatten): element size might change during comparison.
[ruby-dev:24343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-29 05:15:33 +00:00
eban
c0e71a8a97
2004-09-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-29 02:13:08 +00:00
nobu
3615015df0
* enum.c (sort_by_i): internally used object must not be changed
...
outside. [ruby-dev:24368]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-29 01:58:43 +00:00
nobu
cf729ce62b
add ML reference.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-27 12:32:05 +00:00
nobu
6f42276d05
* eval.c (rb_call0): invoke finalizers periodically.
...
* gc.c (gc_sweep): defer running finalizers.
* gc.c (rb_gc_finalize_deferred): run deferred finalizers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-27 12:25:21 +00:00
eban
2352c318ca
2004-09-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-27 10:45:56 +00:00
aamine
18c4d35431
* parse.y [ripper]: missing ';'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-27 06:02:27 +00:00
nobu
0bedb2e07f
* intern.h, struct.c (rb_struct_s_members, rb_struct_members): public
...
accessors. [ruby-dev:24342]
* marshal.c (w_object, r_object0): use accessors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-27 04:46:54 +00:00
eban
ddd5b50d12
2004-09-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-26 02:53:28 +00:00
tadf
c26e86fd1b
synchronized with date2 3.6.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-25 23:10:36 +00:00
nobu
7e827e6694
* hash.c: iterator functions for hash_foreach() should return enum
...
st_retval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-24 19:05:07 +00:00
matz
08f84dcf44
* struct.c (rb_struct_s_members): wrong call of struct_members.
...
[ruby-dev:24333]
* eval.c (proc_invoke): propagate DVAR_DONT_RECYCLE on termination
to avoid double call to rb_gc_force_recycle(). [ruby-dev:24311]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-24 16:58:51 +00:00