Commit graph

5108 commits

Author SHA1 Message Date
akr
9233c9a14c * io.c: avoid avoid data loss with nonblocking fd and
stdio buffering in sync mode.  [ruby-dev:24966]
  based on matz's patch [ruby-dev:24967]
  (io_fwrite): new primitive writing function which writes
  directly if sync mode.
  (rb_io_fwrite): wrapper for io_fwrite now.
  (io_write): call io_fwrite instead of rb_io_fwrite.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 13:05:46 +00:00
eban
88df4b1580 * 2004-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 02:25:54 +00:00
matz
e8fe520ecd * io.c (io_fread): [ruby-dev:24964]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 02:21:53 +00:00
nagai
f798721334 * ext/tk/lib/tk.rb: Tk.destroy uses TkWindow#epath
* ext/tk/lib/tk/image.rb: bug fix
* ext/tk/lib/tk/wm.rb: add 'iconphoto' method(Windows only)
* ext/tk/lib/tkextlib/*: some methods uses TkWindow#epath


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 09:07:25 +00:00
matz
13e9c5ed18 * eval.c (method_missing): raise TypeError for classes do not
have allocators.  [ruby-core:03752]

* lib/erb.rb: [ruby-core:03786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 05:01:13 +00:00
dave
8d68de2482 Fix problem with :section: and new 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 04:32:11 +00:00
eban
3288671d82 * lib/erb.rb: CR stripped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 16:04:24 +00:00
eban
349fa4d37d * 2004-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 15:59:14 +00:00
matz
0d39336f6c * io.c (io_read): move StringValue() check before GetOpenFile().
[ruby-dev:24959]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 15:50:18 +00:00
nobu
87ebe411a6 * lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
threads should be also processed.  [ruby-talk:121320]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 11:15:33 +00:00
ttate
c0b17e006c bugfix for [ruby-talk:121309].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 08:39:31 +00:00
ttate
bf6f327fb2 Use 'P' instead of 'p' in types.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 08:15:29 +00:00
nobu
a460a366f8 descriptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 02:24:02 +00:00
matz
7d783091a2 * io.c (read_all): [ruby-dev:24955]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 01:26:49 +00:00
usa
35eac123de * 2004-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 01:19:24 +00:00
nobu
6e368fcc3c * dir.c (push_braces): do not reuse buffer strings. [ruby-core:03806]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 01:14:35 +00:00
ttate
086b1b67eb Improved encode_type() in types.rb for [ruby-talk:121175].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-24 16:41:16 +00:00
eban
12c3fa641a * 2004-11-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-24 01:36:59 +00:00
matz
f175b8114c * io.c (io_read): [ruby-dev:24952]
* configure.in, io.c: cancel [ ruby-Patches-1074 ].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-23 17:37:51 +00:00
nagai
81c1375c98 * ext/tk/lib/tk/menu.rb: improve usability of TkOptionMenubutton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 23:12:37 +00:00
matz
4e979c77e5 * file.c (rb_file_chown): [ruby-dev:24949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 17:02:45 +00:00
usa
51ffc4f881 * 2004-11-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 15:37:28 +00:00
matz
39080991ab * file.c (rb_file_chown): integer conversion should be prior to
GetOpenFile().  [ruby-dev:24947]

* file.c (rb_file_truncate): ditto.

* file.c (rb_file_s_truncate): ditto.

* dir.c (dir_seek): use NUM2OFFT().

* misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719]

* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
  [ruby-dev:24941]

* string.c (rb_str_splice): should place index wrapping after
  possible modification.  [ruby-dev:24940]

* eval.c (error_print): nicer traceback at interrupt.
  [ruby-core:03774]

* string.c (str_gsub): internal buffer should not be listed by
  ObjectSpace.each_object() by String#gsub.  [ruby-dev:24931]

* lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise
  exception if data corresponding to session specified from the
  client does not exist.

* string.c (str_gsub): internal buffer should not be listed by
  ObjectSpace.each_object().  [ruby-dev:24919]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 15:29:52 +00:00
usa
e2242e7e2a * 2004-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 14:01:36 +00:00
dave
02942d87b9 Don't include 'require's with variable arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 13:37:39 +00:00
eban
6d8c3c55b5 * 2004-11-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:05:19 +00:00
dave
3635edac9d 1. Force --inline-source if --one-file given
2. Add new :section: directive which starts a new section in the output.
   The title following :section: is used as the section heading, and the
   remainder of the comment containing the section is used as
   introductory text. Subsequent methods, aliases, attributes,
   and classes will be documented in this section.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:02:57 +00:00
eban
228b72b7a0 * string.c (rb_str_splice, rb_str_upcase_bang): cleanups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 14:37:35 +00:00
eban
4b992c1341 * ChangeLog: add ML reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 14:07:46 +00:00
eban
e2aea7a236 * test/ruby/test_stringchar.rb (test_bang): added.
* string.c (rb_str_upcase_bang, rb_str_capitalize_bang)
(rb_str_swapcase_bang): missing rb_str_modify().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 14:04:10 +00:00
naruse
346b582c02 * ext/nkf/nkf-utf8/utf8tbl.c: original revision 1.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 04:36:07 +00:00
naruse
ee44b3a1fc * original revision 1.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 04:26:03 +00:00
usa
d071145cb8 * 2004-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 03:02:27 +00:00
naruse
8971be8f24 * ext/nkf/nkf-utf8/nkf.c: original nkf.c rev:1.40
* ext/nkf/test.rb: add test for mime encode/decode


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 20:54:15 +00:00
naruse
c4d301e4a7 * add and change mime encode/decode tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 20:52:35 +00:00
naruse
02f6ed66b7 * original nkf.c rev:1.40
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 20:52:01 +00:00
usa
e181faf4c8 * 2004-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 03:55:04 +00:00
matz
db8a49614f * process.c (proc_getpgrp): prohibit for $SAFE=2.
[ruby-dev:24899]

* process.c (get_pid): ditto.  [ruby-dev:24904]

* process.c (get_ppid): ditto.

* array.c (rb_ary_delete): defer rb_ary_modify() until actual
  modification.  [ruby-dev:24901]

* parse.y (newline_node): should not use FL_SET. [ruby-dev:24874]

* parse.y (string_content): should not use FL_UNSET.

* node.h (NODE_NEWLINE): remove unused bit to utilize flag field
  in nodes.

* string.c (rb_str_splice): move rb_str_modify() after
  StringValue(), which may alter the receiver.  [ruby-dev:24878]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 03:47:14 +00:00
nobu
1fff70f8b3 * ext/stringio/stringio.c: needs fcntl.h for O_* constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 02:27:00 +00:00
nobu
61566f4b7c * io.c, rubyio.h (rb_io_modenum_flags): exported.
* ext/stringio/stringio.c (strio_initialize): allow Fixnum as mode as
  well as IO.new does.  [ruby-dev:24896]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 01:11:01 +00:00
nahi
10e6c73f3c Wed Nov 17 23:42:40 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* test/ruby/test_settracefunc.rb: added.  [ruby-dev:24884]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 14:49:07 +00:00
(no author)
970ce679ff This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 14:49:07 +00:00
usa
7ce7c614c5 * {bcc32,win32,wince}/Makefile.sub (test): should build ruby.exe
before running test. [ruby-core:03756]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 04:11:22 +00:00
eban
1180a10814 * 2004-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 01:19:50 +00:00
gotoyuzo
b86269e445 * pack.c: all features are backport from 1.9. [ruby-dev:24826]
* bignum.c (rb_big2ulong_pack): new function to pack Bignums.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 19:43:24 +00:00
matz
73deb73392 * numeric.c (flo_divmod): protect float values from GC by
assignment to local variables.  [ruby-dev:24873]

* string.c (str_mod_check): frozen check should be separated.
  [ruby-core:3742]

* array.c (rb_ary_update): pedantic check to detect
  rb_ary_to_ary() to modify the receiver.  [ruby-dev:24861]

* string.c (rb_str_justify): typo fixed.  [ruby-dev:24851]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 14:54:49 +00:00
usa
f556628264 * {bcc32,win32,wince}/setup.mak (-epilogue-): fix bug of previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 08:37:59 +00:00
usa
78bb93ac08 * {bcc32,win32,wince}/setup.mak (-epilogue-): remove config.h and
config.status to force updating them.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 07:30:42 +00:00
nobu
549bdb3b0e * ext/stringio/stringio.c (strio_read): position was ignored when a
buffer was passed.  http://www.yo.rim.or.jp/~nov/d/?date=20041116#p03


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 07:21:21 +00:00
usa
8e4ff32002 * 2004-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 02:26:18 +00:00