Commit graph

1902 commits

Author SHA1 Message Date
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
matz
cff080e563 * ext/openssl/ossl_digest.c (Init_ossl_digest): avoid recursing
require.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-20 23:56:40 +00:00
nobu
8dfd918d5b * ext/thread/thread.c (unlock_mutex_inner): should adjust join
target here but not in wake_one.  a patch from John Carter at
  [ruby-core:23490].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-18 12:13:22 +00:00
nobu
072ccff04d * eval.c (rb_thread_join), ext/thread/thread.c (wake_one): adjusts
targets of rest waiting threads to join.  [ruby-core:23457]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-15 08:33:52 +00:00
nagai
55e66f6f7f * ext/tk/sample/tkcombobox.rb: fix conflict with autoload definition
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-26 00:44:59 +00:00
matz
27a1255586 * ext/nkf/nkf.c: RDoc typo fixed. [ruby-core:23170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 02:11:38 +00:00
nobu
31c1ebc6b5 * ext/extmk.rb: quotes arguments with spaces always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 03:46:22 +00:00
nobu
9aecc028a3 * common.mk (main): passes $(MAKE) to mkmain_cmd
* ext/extmk.rb (command_output): uses arguments to invoke make.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 03:43:17 +00:00
nobu
5f79c781e3 * ext/dl/{mkcall,mkcallback,mkcbtable}.rb: no needs of mkmf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 19:31:38 +00:00
nobu
cc55fb42a4 * ext/extmk.rb: MINIRUBY is given via make-flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 19:00:35 +00:00
knu
24894b3d34 * ext/stringio/stringio.c (StringIO#ungetbyte): New method
backported from 1.9



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 12:20:57 +00:00
akr
69ca9dc5db * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
instead of STR2CSTR.

* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
  (ossl_ec_group_initialize): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 09:04:43 +00:00
akr
6bbd8a58dd * ext/openssl/ossl_ssl.c: revert incomplete read_nonblock
implemenatation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-19 14:19:35 +00:00
nobu
127a23f3ed * ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
(lib_watchdog_core): tv_usec is not time_t.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-16 07:37:24 +00:00
nobu
c32115d625 * ext/extmk.rb (extmake): removes object files no longer used and
files to be removed by old distclean.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 08:10:10 +00:00
nobu
087a58314f * ext/extmk.rb (extmake): removes object files no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 07:31:46 +00:00
nobu
399aed8972 * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and
$srcs are always Array or nil now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 07:25:50 +00:00
nobu
643bfbb49c * ext/bigdecimal/bigdecimal.c (gfDebug): uncommented out.
[ruby-core:22600]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 08:27:17 +00:00
shugo
151527ceca * ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): OCSP_basic_verify
returns positive value on success, not non-zero.  [ruby-core:21762]
  backported r22440 from trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 05:32:02 +00:00
akr
52a6728bd2 * ext/socket/socket.c (unix_recv_io): prevent FD leak when 2 fd is
sent on LP64 platform.
  (rsock_discard_cmsg_resource): new function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 14:39:15 +00:00
nobu
cb7bc8db56 * common.mk (main): split from exts and makes main program after
building exts with miniruby, to get rid of overwriting running
  program.  [ruby-core:22339]

* Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to
  run script file.

* ext/extmk.rb (parse_args): added --command-output option which
  creates script file to make main program.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 10:01:08 +00:00
nobu
9bc9c63d27 * ext/etc/etc.c (sGroup): getgrent may not be available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-17 16:58:12 +00:00
knu
bda2980b2a Fix grammos regarding the verb "refer".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 09:05:28 +00:00
akr
564f5a411f * ext/socket/socket.c (unix_recv_io): relax msg_controllen error
check for x86_64-openbsd4.4.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-08 16:27:39 +00:00
nobu
95b2261463 merged revision 21628:
* configure.in (darwin): get rid of strange settings issue of
	  apple gcc port, which searches /usr/local/include always but
	  /usr/local/lib not.
	
	* ext/readline/readline.c (Init_readline): suppress warnings with
	  libedit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-05 12:01:25 +00:00
nobu
45108851f0 * ext/thread/thread.c (rb_queue_pop, rb_queue_push): should not lock
mutex if got an exception while waiting, and should ensure unlocked
  after signaled.  [ruby-dev:37545]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-03 09:35:50 +00:00
technorama
31dc22d42d * ext/openssl/ossl_ssl.c: Server Name Indication support.
new methods SSLContext#server_name_cb=, SSLSocket#hostname=.

* test/openssl/test_ssl.rb: Tests for above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 20:37:52 +00:00
nobu
32dd2c47a5 * ext/socket/extconf.rb (gai_strerror): checks if available and if
returns const pointer.

* ext/socket/getaddrinfo.c (gai_strerror): defines only if non
  available.  [ruby-core:21328]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 04:09:05 +00:00
akr
07594eed50 * ext/socket/socket.c (sock_s_unpack_sockaddr_in): check too short
sockaddr.
  (sock_s_unpack_sockaddr_un): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 16:00:03 +00:00
nobu
81fa4f2da6 * ext/extmk.rb (extmake): does not use both of makefile.rb and
extconf.rb at the same time.

* lib/mkmf.rb (DLLIB): depends on Makefile.  [ruby-core:21096]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-04 02:11:33 +00:00
matz
ffe57003cc * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):
OpenSSL::SSL::SSLSocket should implement read_nonblock.  a patch
  from Aaron Patterson in [ruby-core:20277].  fix: #814 [ruby-core:20241]

* ext/tk/lib/tk/menu.rb: TkOptionMenubutton.new fails to treat

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 07:26:28 +00:00
nagai
0aaec36f3b * ext/tk/lib/tk/menu.rb: TkOptionMenubutton.new fails to treat
'parent' and 'variable' options on a Hash argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03 21:08:26 +00:00
kazu
2fa7740814 * ext/gdbm/gdbm.c: do not set members of RSTRING(str) directly.
[ruby-dev:37182]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-26 04:33:16 +00:00
nagai
9bb9f4ec28 * ext/tk/lib/tkextlib/blt/tabset.rb, ext/tk/lib/tkextlib/blt/tabnotebook.rb:
fix many bugs. Now, those work properly.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-24 18:50:12 +00:00
nagai
3361fdc1c1 * ext/tk/lib/tkextlib/version.rb, ext/tk/ChangeLog.tkextlib: update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-22 01:43:18 +00:00
nagai
c65828a877 * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
fix NameError bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-22 01:38:28 +00:00
matz
471742d6af * ext/bigdecimal/bigdecimal.c (VpMidRound): Round method bug
pointed by Ryan Platte fixed(Patch to the patch from "NATORI
  Shin").  [ruby-talk:273360]
  back ported from 1.9. fix [ruby-core:19791]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-12 04:39:11 +00:00
knu
54b2fa7e3d * ext/dbm/dbm.c (fdbm_key): Rename #index to #key. Emit a warning
when #index is called.
  (fdbm_indexes): Emit a deprecation warning.

* ext/gdbm/gdbm.c: Ditto.

* ext/sdbm/init.c: Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-10 09:18:23 +00:00