Commit graph

1939 commits

Author SHA1 Message Date
nahi
f9df459a31 * ext/stringio/stringio.c (strio_getline): fix for "" as separator.
[ruby-dev:34591] (Backport r17739 by Yusuke Endoh from trunk).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-21 06:33:05 +00:00
marcandre
07e95b9493 * ext/bigdecimal/bigdecimal_en.html: Remove obsolete information, fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 22:35:20 +00:00
marcandre
941025c31b * lib/bigdecimal.rb: fix comparison operators [ruby-core:26646]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 22:05:52 +00:00
nobu
13a9126e65 * ext/extmk.rb (command_output): $makeflags are already quoted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:57:47 +00:00
knu
86a1f03b1a * ext/digest/digest.c (rb_digest_instance_method_unimpl): Do not
call rb_inspect() on an object that does not implement necessary
  methods; reported by NaHi.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 10:34:24 +00:00
knu
957ce6574c * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Add an
obsoleteness warning under -w/-v.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-24 07:21:12 +00:00
nagai
8d877392a4 * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 19:11:20 +00:00
nagai
a935415948 * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
bug on handling of the "other" value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 18:36:29 +00:00
marcandre
aaee331c7f * ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): rdoc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-09 06:50:55 +00:00
nagai
f582b224bd * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 12:22:57 +00:00
nagai
db68a429f1 * ext/tk/tcltklib.c: mistake on operation. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:21:09 +00:00
nagai
a12849c394 * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
with old ruby 1.8.x.
* ext/tk/tkutil/tkutil.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 22:40:02 +00:00
nagai
95945dbe50 * ext/tk/lib/remote-tk.rb: typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 04:26:32 +00:00
nobu
8d018b2248 * intern.h (rb_thread_join): added prototype. a patch from
Mikhail T. in [ruby-core:26217].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 08:27:24 +00:00
nobu
aee3b87f8c * ext/iconv/iconv.c (iconv_create): cannot retry with given block.
[ruby-dev:39487]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:21:00 +00:00
nagai
9e46368428 * ext/tk/variable.rb: bug fix. additional trace definition changes the
option of first trace definition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-13 09:56:07 +00:00
nobu
5d1364df50 * ext/gdbm/gdbm.c (fgdbm_select): fixed rdoc. a patch from Justin
Collins in [ruby-core:26050].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-11 06:54:54 +00:00
marcandre
d13255aa40 ext/curses/curses: more whitespace
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 17:47:51 +00:00
marcandre
c7a8fb0afe * ext/curses/curses.c: Many functions of module Curses could cause a crash if the ncurses library was not properly initialized.
Fix pointed out by Alexander Beisig [ruby-core:22592]
  Functions fixed: attroff, attron, attrset, bkgd, bkgdset, can_change_color, close_screen, closed, color_content, curs_set, def_prog_mode, delch, deleteln, getmouse, getstr, has_colors, init_color, init_pair, insertln, keyname, mouseinterval, mousemask, pair_content, pair_number, reset_prog_mode, resizeterm, scrl, setscrreg, standend, standout, start_color, timeout, ungetmouse

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 17:47:34 +00:00
marcandre
203c2e4547 ext/curses/curses.c: fix whitespace
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 17:47:15 +00:00
nagai
d8812e2a14 * ext/tk/lib/tk/canvas.rb: *** POTENTIALLY INCOMPATIBLE ***
'tags' option of a TkcItem object gives a list of TkcTag objects.
* ext/tk/lib/tkextlib/vu/dial.rb: fix logical bug.
* ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb: 
  lack of support for methodcall_optkeys.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-05 21:29:44 +00:00
nagai
ccc451a6c9 * ext/tk/lib/tk/variable.rb: add TkVariable#to_hash,to_proc,to_int,to_str,to_ary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 20:40:05 +00:00
marcandre
bd43f0371d * ext/openssl/ossl_config.c (ossl_config_add_value_m, ossl_config_set_section): Check if frozen (or untainted for $SECURE >= 4) [ruby-core:18377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 01:26:41 +00:00
marcandre
28d641911b * numeric.c: Fix doc for #remainder [ruby-core:18796]
* ext/bigdecimal/bigdecimal.c: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 17:46:59 +00:00
suke
f401324a4a * ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result
variant value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 04:32:48 +00:00
suke
660bc21675 * ext/win32ole/win32ole.c (fole_s_show_help): fixed the comment
of WIN32OLE.ole_show_help usage.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 22:09:50 +00:00
nobu
fafa31919d * ext/curses/curses.c ({curses,window}_addstr),
ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
  replaced deprecated funtion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 10:57:39 +00:00
usa
2791740667 * ext/digest/sha2/sha2.h: need to include defs.h instead of inttypes.h
because VC6 doesn't have the latter.

	* ext/digest/sha2/extconf.rb: rollback r24441.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:07:06 +00:00
nagai
6a61d9674c * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
* ext/tk/tcltklib.c (Init_tcltklib): avoid warning when disable-pthread


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 12:26:52 +00:00
akr
6df41fc37a * ext/digest/sha2/sha2.h: include inttypes.h for uint32_h, etc.
* ext/digest/sha2/extconf.rb: check inttypes.h.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-07 11:19:28 +00:00
knu
01efe808b9 * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
off-by-one bug in SHA-256 hashing.  Reduce differences from
  the original while at it. [Bug #1799]




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 17:05:51 +00:00
knu
7b379bb07f * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
checked here. [ruby-dev:39032]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 17:00:57 +00:00
knu
4a57c8a8f9 * ext/digest/sha2/lib/sha2.eb: should require sha2.so.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:56:43 +00:00
nagai
2a77ed6753 * ext/tk/extconf.rb (search_tclConfig): fix logic bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:06:15 +00:00
nagai
e3b2342a05 * ext/tk/lib/tcltklib.c: fix trouble on old-style C function
declarations [ruby-core:22871].
* ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE
* ext/tk/lib/tk/multi-tk.rb: kill zombie threads.
* ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj.
* ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/virtevent.rb,
  ext/tk/lib/tk/image.rb, , ext/tk/lib/tk/timer.rb: create unnecessary array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 19:01:53 +00:00
nagai
7177850838 * ext/tk/lib/extconf.rb: bug fix and ignore invalid Tcl/Tk libraries.
* ext/tk/lib/config_list.in: bug fix and add a new option.
* ext/tk/lib/README.tcltklib: update for a new option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-27 19:42:41 +00:00
nagai
98d2bac66d * ext/tk/extconf.rb: should not create "config_list" in a $srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-23 08:29:16 +00:00
nagai
e68710727e * ext/tk/lib/tk.rb: fail to create a widget object for an unknown wiget path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 22:57:19 +00:00
nagai
00b66b7edb * ext/tk/lib/tk.rb,ext/tk/lib/tk/grid.rb: Bug fix on grid_slaves().
Extend usage pattern of grid_column()/grid_row().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 22:10:31 +00:00
nagai
3316eb9c61 * ext/tk/extconf.rb,ext/tk/config_list.in: ignore paths which includes
white space characters on Windows.[ruby-dev:38794]
* ext/tk/lib/tk.rb: works on Cygwin (limitation:: Tk.mainloop works on
  the main thread only).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 14:35:07 +00:00
nagai
9dd9217f70 * ext/tk/extconf.rb: --with-{tcl,tk}-dir doesn't work.[ruby-dev:38782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 21:31:13 +00:00
nagai
bd3923d599 * ext/tk/lib/multi-tk.rb: Long-term-callback support isn't stable yet.
So, disable the feature and waiting for improvement in the future.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 00:29:25 +00:00
nagai
140f4dd0ab * ext/tk/lib/tk/menuspec.rb: commit miss on my last commitment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 23:11:53 +00:00
nagai
41b74c6e20 * ext/tk/extconf.rb: New strategy for searching Tcl/Tk libraries.
* ext/tk/*: Support new features of Tcl/Tk8.6b1 and minor bug fixes.
     ( [KNOWN BUG] Ruby/Tk on Ruby 1.9 will not work on Cygwin. )
* ext/tk/*: Unify sources between Ruby 1.8 & 1.9.
            Improve default_widget_set handling.
* ext/tk/*: Multi-TkInterpreter (multi-tk.rb) works on Ruby 1.8 & 1.9.
     ( [KNOWN BUG] On Ruby 1.8, join to a long term Thread on Tk
       callbacks may freeze. On Ruby 1.9, cannot create a second 
       master interpreter (creating slaves are OK); supported master
       interpreter is the default master interpreter only. )
* ext/tk/lib/tkextlib/*: Update supported versions of Tk extensions.
         Tcllib 1.8/Tklib 0.4.1  ==>  Tcllib 1.11.1/Tklib 0.5
         BWidgets 1.7            ==>  BWidgets 1.8
         TkTable 2.9             ==>  TkTable 2.10
         TkTreeCtrl 2005-12-02   ==>  TkTreeCtrl 2.2.9
         Tile 0.8.0/8.5.1        ==>  Tile 0.8.3/8.6b1
         IncrTcl 2005-02-14      ==>  IncrTcl 2008-12-15
         TclX 2005-02-07         ==>  TclX 2008-12-15
         Trofs 0.4.3             ==>  Trofs 0.4.4


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-12 23:09:52 +00:00
nobu
bbfe73888a * ext/bigdecimal/bigdecimal.c (gfCheckVal): never used.
* ext/bigdecimal/bigdecimal.c (VpInit): fixed format modifiers.

* ext/bigdecimal/bigdecimal.c (VPrint): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 08:49:37 +00:00
matz
1e7898d76a * ext/bigdecimal/bigdecimal.c (VpCtoV): big number should result
to infinite.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): rounding mode
  condition check updated.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpPower): should handle NaN and
  Inf.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): divmod should
  raise ZeroDivisionError.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should check
  exception for VP_EXCEPTION_UNDERFLOW and VP_EXCEPTION_ZERODIVIDE.
  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpException): ditto.

* ext/bigdecimal/bigdecimal.h (VP_EXCEPTION_ZERODIVIDE): new error
  code.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_round,
  BigDecimal_truncate, BigDecimal_floor, BigDecimal_ceil): eagerly convert
  bigdecimal to integer.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpMult): free internal Real.
  backported from 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 06:06:01 +00:00
matz
5e183bb4b2 * ext/bigdecimal/bigdecimal.c (VpToString): fixed a bug introduced
in r23613.  [ruby-talk:338957]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 04:34:41 +00:00
matz
3a1b61f059 * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid
segmentation fault caused by (insanely) long decimal values.
  backported from 1.9.
* ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i,
  BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split,
  BigDecimal_inspect): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 00:14:25 +00:00
matz
5d612b96ad * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf if
exp is bigger than DBL_MANT_DIG.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 22:54:40 +00:00
nobu
b45d7f9341 * ext/thread/thread.c (unlock_mutex_inner): fixed wrong variable.
a patch from Jeremy Kemper <jeremy AT bitsweat.net> at
  [ruby-core:23592].  [ruby-core:23588]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 00:19:57 +00:00