Commit graph

7552 commits

Author SHA1 Message Date
tadf
b9ff18fa6e * lib/date/format.rb (Date._parse): detects some OFX dates
(Of course not fully).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-19 01:29:21 +00:00
matz
7313b14021 * array.c (rb_ary_first): add negative length check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 14:18:02 +00:00
matz
642273c070 * array.c (rb_ary_first): call rb_ary_subseq() instead of pushing
values by itself.  [ruby-talk:252062]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 14:10:29 +00:00
nobu
ff964e8aa2 * win32/win32.c (move_to_next_entry): loc also must move forward.
[ruby-talk:251987]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 08:09:21 +00:00
nobu
d38062a72f * win32/mkexports.rb: preserve prefixed underscores for WINAPI
symbols.

* wince/mkconfig_wce.rb, wince/mkexports.rb: obsolete.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 18:01:30 +00:00
nobu
b6c04c5de6 * misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 08:02:02 +00:00
usa
bfdfdf2749 * 2007-05-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 06:00:59 +00:00
usa
d2ef00aabc * ChangeLog: orz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 05:55:55 +00:00
usa
7f8f2a33d1 * win32/win32.c (init_stdhandle): stderr should be without buffering,
but mswin32 use buffering when stderr is not connected to tty.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 05:55:06 +00:00
nobu
39e50d214d * ext/thread/thread.c (wait_list): supress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-14 04:26:57 +00:00
usa
9c749a323e * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:20:58 +00:00
nobu
73909f8e6d * eval.c (rb_thread_priority): rdoc fix; the initial value is
inherited from the creating thread.  [ruby-core:10607]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 01:13:11 +00:00
nobu
ce6fd792ad * numeric.c: purged trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 04:11:41 +00:00
nobu
ab1254448d * bignum.c: purged trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 03:49:18 +00:00
nobu
8624d6b3f6 * bignum.c (Init_Bignum), numeric.c (Init_Numeric): added fdiv as
aliases of quo.  [ruby-dev:30771]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 03:28:08 +00:00
nobu
587035c080 * numeric.c (int_pow): calculate power in Fixnum as possible.
[ruby-dev:30726]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 03:16:16 +00:00
nobu
8dcf078f72 * bignum.c (rb_big_quo): now calculate in integer. [ruby-dev:30753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 02:54:14 +00:00
nobu
952e281a2a * bignum.c (rb_big_pow): reduce multiplying for even number.
* bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]

* bignum.c (rb_big_pow): improvement by calculating from MSB and using
  factorization.  <http://yowaken.dip.jp/tdiary/20070426.html#p01>

* numeric.c (int_pow): calculate power in Fixnum as possible.
  [ruby-dev:30726]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 02:50:04 +00:00
nobu
84eb18a91f * 2007-05-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 01:47:55 +00:00
tadf
0eadd571dd * lib/date/format.rb (Date._parse): revised treatment of
hyphend/separatorless dates.

	* lib/date/format.rb: some trivial adjustments.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 14:42:29 +00:00
usa
d0ec0e5c17 * 2007-05-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 11:41:19 +00:00
tadf
634d1a1315 * lib/date/format.rb: reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 11:25:35 +00:00
nobu
d2f46dfa8e * lib/date/format.rb (Format::Bag#method_missing): get rid of
modifying orginal argument.  [ruby-core:11090]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-05 07:25:35 +00:00
eban
9d39f4c089 * 2007-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-29 16:56:24 +00:00
seki
858e38c902 * lib/rinda/tuplespace.rb (TupleSpace#create_entry, TupleBag#push,
delete): extract method, and rename parameter.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-29 16:21:31 +00:00
ryan
dda4527478 Fixed raise Interrupt and Module rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26 17:06:54 +00:00
nobu
a2492c4956 * misc/ruby-style.el: new file. C/C++ style for ruby source code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26 04:54:01 +00:00
akr
6d5469dd5b clear cmsg padding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 13:35:47 +00:00
akr
32b6bd3232 * ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA to
align file descriptor appropriately.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 11:00:37 +00:00
nobu
909f0b13b7 * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
[ruby-talk:248288]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-24 00:33:09 +00:00
nobu
27d87bb4de * ext/extmk.rb ($ruby): add extout directory to include path.
[ruby-core:11003]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:13:53 +00:00
nobu
763f629e77 * lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
directory.

* lib/mkmf.rb (init_mkmf): add current directory to default
  library path with highest priority.  [ruby-core:10960]

* lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:08:29 +00:00
nobu
364c4a0974 * configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
it is done by libpathflag in mkmf.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 07:04:35 +00:00
nobu
2a50650ceb * lib/optparse.rb: fix to override conv proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 03:26:19 +00:00
nobu
47807a7b44 * eval.c (ruby_cleanup): inversed the order of errinfos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 03:16:21 +00:00
nobu
378c35fc75 * lib/monitor.rb (ConditionVariable#wait, mon_enter, mon_exit_for_cond):
ensures Thread.critical to be false.  [ruby-talk:248300]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19 05:52:49 +00:00
nobu
7595c80e55 * util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-18 01:40:38 +00:00
nobu
fad88354f9 * configure.in (Makefile): remove $U for automake from MISSING.
[ruby-talk:248171]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 17:29:39 +00:00
nobu
fa0f126d71 * configure.in (LDFLAGS): prepend -L. instead appending it to
XLDFLAGS.  [ruby-core:10933]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 17:17:15 +00:00
matz
874a344ed6 * eval.c (rb_yield_0): should not clear state on TAG_NEXT when
it's invoked from within lambda body.  [ruby-talk:248136]

* eval.c (proc_invoke): handle TAG_NEXT which would be caused by
  next in the lambda body as well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 07:47:59 +00:00
matz
0ce51bc995 * ext/pty/expect_sample.rb: avoid symbolic link representation for
expect.  a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30714]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:57:13 +00:00
matz
67e61153d3 * sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30713]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:51:51 +00:00
nobu
5c1b68e95a * lib/optparse.rb (make_switch): do not clobber converter if pattern
has no convert method.  reported by sheepman in [ruby-dev:30709].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 08:07:20 +00:00
nobu
3eb48e993a * ext/stringio/stringio.c (strio_seek): consistent behavior with
IO#seek.  patch by sheepman in [ruby-dev:30710].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:48:50 +00:00
matz
fe2900b515 * parse.y (parser_yylex): should set command_start after block
starting "do"s and braces.  [ruby-core:10916]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:44:56 +00:00
tadf
3ff952f8c9 * lib/date/format.rb: added some zone names.
* lib/date/format.rb (_parse): now interprets doted numerical
	  dates as a big endian (except dd.mm.yyyy).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-15 00:20:12 +00:00
usa
0e59ccdc4e * ChangeLog: sorry, I made mistake in the copy of the log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-11 07:19:50 +00:00
usa
c23eaad4ca * 2007-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-10 08:37:43 +00:00
usa
edac529177 * thread_win32.ci (w32_wait_events): check whether interrupt_event is
valid handle or not.

	* thread_win32.ci (native_thread_destroy): clear interrupt_event when
	  close it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-10 08:37:21 +00:00
eban
0d2ec8d2f4 * 2007-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-09 09:37:04 +00:00