Commit graph

7022 commits

Author SHA1 Message Date
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
nobu
3d08cb2afd * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use
Regexp conversion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 02:19:44 +00:00
nobu
182ced3e15 * misc/ruby-mode.el (ruby-special-char-p, ruby-parse-partial): handle
operator symbols.  [ruby-talk:120177]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-15 02:51:10 +00:00
eban
2d50a48405 * 2004-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 16:06:42 +00:00
matz
fa52148571 * ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string
pointer.  [ruby-dev:24783]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 16:01:45 +00:00
nobu
aee1d3d56c * lib/pp.rb (PP#object_address_group): remove odd number of 'f'
prefixed to negative address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 04:27:39 +00:00
eban
4f7f6e7531 * 2004-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 04:24:31 +00:00
nahi
2c4189c705 Sun Nov 14 08:51:04 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* test/logger/test_logger.rb: Logger just expects
          Logger#datetime_format to be used for Time#strftime independently of
          locale. [ruby-dev:24828]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-13 23:53:46 +00:00
gotoyuzo
66d97eae55 backport from 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-13 14:07:13 +00:00
usa
d545321973 * 2004-11-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 06:06:40 +00:00
usa
54c24dfc99 * eval.c (ruby_options): now we cannot call rb_glob() before
ruby_init(), so call rb_w32_cmdvector() at ruby_options().

* win32.{c,h} (rb_w32_cmdvector): rename make_cmdvector() and
  export it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 06:06:15 +00:00
nagai
2b2c7c36d1 * ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES trick
* ext/tk/lib/tk.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 05:09:37 +00:00
nobu
0996725681 * dir.c (rb_globi): also should call back via rb_glob_caller().
[ruby-dev:24775]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 08:36:20 +00:00
usa
66d927e308 * test/ruby/test_file.rb (test_truncate_wbuf): we want to test
only File#truncate, not behaviour of seek(2).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 07:52:25 +00:00
matz
98101c1f96 * dir.c (push_braces): was confusing VALUE and char*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 05:55:02 +00:00
eban
185d6e251a * 2004-11-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 01:38:51 +00:00
matz
075e78b39b * dir.c (rb_push_glob): Dir.glob should have call its block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 00:42:16 +00:00
nobu
a9eea1bc50 * error.c (syserr_initialize): use stringified object.
[ruby-dev:24768]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 16:53:26 +00:00
matz
520a5549f8 * lib/delegate.rb (SimpleDelegator::dup): wrong number of
arguments.

* lib/delegate.rb (DelegateClass::dup): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 13:52:08 +00:00
matz
c5789b5075 * dir.c (rb_glob2): do not allocate buffer from heap to avoid
memory leaks.  use string object for buffering instead.
  [ruby-dev:24738]

* dir.c (join_path): ditto.

* io.c (io_read): external input buffer may be modified even after
  rb_str_locktmp().  [ruby-dev:24735]

* dir.c (fnmatch): p or s may be NULL.  [ruby-dev:24749]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 07:17:53 +00:00
nobu
dd65b46d65 * README.EXT (Example): extconf.rb is indispensable now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 03:31:55 +00:00
usa
3ab761e3d3 * 2004-11-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 02:42:46 +00:00
nagai
6025fed91d * ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x or older
* ext/tk/lib/tkextlib/tile/style.rb: bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 18:35:52 +00:00
nobu
4f302c1558 * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 05:27:58 +00:00
eban
b14c41b918 * 2004-11-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:57:31 +00:00
eban
439c7d507c * regex.c (slow_match): avoid GCC 3.4.x warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:57:07 +00:00
dave
443c67721f Change version numbering of RDoc and ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:55:23 +00:00
seki
9be05801ea add DRb::ExtServManager#uri=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 14:38:58 +00:00
dave
a7b4316a3a Fix bug where parent class wasn't being detected if the
child class was defined using the A::B notation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 13:25:26 +00:00
eban
d452a0ce16 * 2004-11-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-07 15:19:36 +00:00
eban
53c201066c * configure.in: add setup for mignw32 cross compiling.
[ruby-talk:119413]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-07 15:16:27 +00:00
nagai
0be5de09a0 * ext/tk/lib/tk.rb: bind-event methods accept multi substitution arguments.
* ext/tk/lib/tk/canvas.rb: ditto.
* ext/tk/lib/tk/canvastag.rb: ditto.
* ext/tk/lib/tk/text.rb: ditto.
* ext/tk/lib/tk/texttag.rb: ditto.
* ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto.
* ext/tk/lib/tkextlib/tktable/tktable.rb: ditto.
* ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-07 14:53:02 +00:00
gotoyuzo
d55f1f480a * lib/webrick/server.rb (WEBrick::HTTPServer#start): remove
:DoNotReverseLookup option. (Socket#do_not_reverse_lookup is a
  ruby 1.9 feature)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-06 06:13:59 +00:00
tadf
9f0643ed57 checks whether zone was given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-06 02:32:45 +00:00
matz
8afd99d671 * string.c (rb_str_locktmp): check STR_TMPLOCK flag before
locking.  [ruby-dev:24727]

* gc.c (gc_mark): stricter GC stack check.

* string.c (str_gsub): should have removed rb_str_unlocktmp(str).
  [ruby-dev:24708]

* string.c (str_gsub): string modify check no longer based on
  tmplock.  [ruby-dev:24706]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-05 16:01:53 +00:00
eban
ddc2b83b3b * 2004-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-05 13:34:26 +00:00
nagai
b4cb871d4a * ext/tk/lib/tk/scrollable.rb: divide Scrollable module into X_Scrollable
and Y_Scrollable
* ext/tk/lib/tk/entry.rb: include X_Scrollable instead of Scrollable
* ext/tk/lib/tk/autoload.rb: define autoload for X_Scrollable and Y_Scrollable


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-05 09:15:18 +00:00