Commit graph

1591 commits

Author SHA1 Message Date
matz
355c6b616c * ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c,
ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move
  incluion of config.h to pacify AIX.  a patch from Yutaka
  Kanemoto <kinpoco at gmail.com>.  [ruby-dev:29197]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 09:01:27 +00:00
matz
88d1f04e9b * ext/syck/syck.c (syck_move_tokens): should avoid negative
memmove.  [ruby-list:42625]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 08:10:12 +00:00
matz
99bb7615ca * configure.in, common.mk: AIX link issue. a patch from Yutaka
Kanemoto <kinpoco at gmail.com>.  [ruby-dev:29190]

* ext/socket/socket.c: AIX socket support.  [ruby-dev:29190]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 07:51:12 +00:00
nagai
f89633f03d * ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 21:14:30 +00:00
matz
5958a6f8e1 * ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
Solaris compiler.  [ruby-core:08114]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 07:46:13 +00:00
aamine
6b80faa6fb * ext/strscan/strscan.c: sync with HEAD (rev 1.25).
* ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 09:37:01 +00:00
nobu
e0ba1de2b1 * ext/pty/pty.c (getDevice): retry once after GC on failure.
[ruby-core:08282]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 09:15:31 +00:00
akr
e1dfa8740d * ext/readline/readline.c (readline_readline): rl_deprep_term_function
may be NULL with libedit.  reported by Ryan Davis.  [ruby-dev:29070]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-24 06:55:26 +00:00
nobu
08046447bb * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
prepending destdir on DOSISH.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-21 03:12:45 +00:00
matz
564d84aaae * lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove
inpect argument from sprintf.  [ruby-dev:29039]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-18 05:08:37 +00:00
nobu
4d56c1de6f * ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-17 15:03:19 +00:00
nagai
aae4100998 * ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5
* ext/tk/lib/tk/namespace.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-14 04:10:51 +00:00
matz
b268c7309e * array.c (rb_ary_pop): may cause realloc oscillation. a patch
from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>.
  [ruby-dev:29028]

* parse.y (then): we'd like to reserve colon here for the future.
  warning added.

* ruby.h: export rb_cMethod.  [ruby-talk:201259]

* ext/bigdecimal/bigdecimal.c: Allows '_' to appear within
  digits.  [ruby-dev:28872]

* ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by
  [ruby-list:42533] fixed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-13 15:43:02 +00:00
nagai
6e95dc1430 * ext/tk/lib/tk/composite.rb: improve handling of the classname on the
option database for the widget class which includes TkComposite.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-13 13:27:20 +00:00
nagai
1949d2393d * ext/tk/lib/multi-tk.rb: remove restriction on the class of
pseudo-toplevel.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-11 10:15:47 +00:00
nagai
8a4c1e5001 * ext/tk/lib/multi-tk.rb: security fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-11 09:04:00 +00:00
nagai
6a33016778 * ext/tk/lib/tk/font.rb: sorry. mistaken to patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-10 10:01:36 +00:00
nagai
6e0e4baf29 * ext/tk/tcltklib.c: make SEGV risk lower at exit.
* ext/tk/lib/tk.rb: ditto.

* ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave
  interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to
  fix the problem is a little tricky. You may have to take care of
  conflicting with it.
* ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy.
* ext/tk/lib/tk/font.rb: ditto.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto.

* ext/tk/sample/demos-en/widget: fail to call function-style methods
  on sample scripts. To fix it, a strategy which similar to the way
  on MultiTiIp is used. Please take care when re-write and re-run a
  demo script on the Widget-Demo code viewer.
* ext/tk/sample/demos-jp/widget: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-10 09:52:30 +00:00
suke
23fa92e3cf Test class name should not be duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-07 22:19:49 +00:00
aamine
3ae4449227 * ext/racc/cparse/cparse.c: sync with original code, rev 1.8.
* ext/racc/cparse/cparse.c: should mark CparseParams objects.
* lib/racc/parser.rb: sync with original code, rev 1.8.
* lib/racc/parser.rb: update coding style.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-06 13:18:14 +00:00
nagai
c47bf50af7 * ext/tk/tcltklib.c (ip_make_menu_embeddable): help to make a menu
widget embeddable (pack, grid, and so on) like as a general widget.
  However, an embeddable menu may require to be definied some event
  bindings for general use.
* ext/tk/lib/tk/event.rb: [bug fix] Tk.callback_break and
  Tk.callback_continue don't work on MultiTkIp.
* ext/tk/lib/multi-tk.rb: ditto.
* ext/tk/lib/tk.rb: lack of Tk.callback_return.
* ext/tk/lib/tk/menu.rb: improve creating clone menus.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-03 10:08:11 +00:00
nobu
554f2b439f * ext/etc/extconf.rb (PW_UID2VAL, PW_GID2VAL): defaulted to conversion
from int, and sys/types.h needs to be included before grp.h.
  fixed: [ruby-dev:28938]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-03 05:42:35 +00:00
aamine
0bf031acce * ext/racc/cparse/cparse.c: sync with original code (rev 1.7).
* ext/racc/cparse/cparse.c: use rb_catch instead of rb_iterate.  Giving a block to a Ruby-level method by rb_iterate is obsolete on Ruby 1.9.  Note that current cparse.c still includes one rb_iterate call on Ruby 1.8, but it is not a problem (at least just now).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-02 10:19:06 +00:00
matz
c16d9cff8b * ext/bigdecimal/bigdecimal.c (BigDecimal_version): fix patch
failure.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-29 10:03:40 +00:00
matz
04b3280a41 * ext/bigdecimal/bigdecimal.c: add RDoc document. a patch from
mathew <meta at pobox.com>.   [ruby-core:07050]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-29 09:09:33 +00:00
nagai
3764541f8e * ext/tk/tcltklib.c: forgot to update TCLTKLIB_RELEASE_DATE.
* ext/tk/lib/tk.rb (tk_tcl2ruby): [bug fix] somtimes fail to convert
  a tcl string to a ruby object if the tcl string includes "\n".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-27 13:51:45 +00:00
nobu
9171f6863a * ext/etc/etc.c (setup_passwd, setup_group): allow bignum uid, gid and
so on.  [ruby-talk:199102]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-27 02:37:01 +00:00
nagai
5f45a040b8 * ext/tk/tcltklib.c (ip_delete): fix SEGV when a slave-ip is deleted
on callback.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-26 09:41:34 +00:00
akr
4c99ec8402 add extconf.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 12:20:27 +00:00
akr
84438a5cc3 * ext/socket/socket.c (sock_s_socketpair): try GC only once.
[ruby-dev:28778]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 20:19:07 +00:00
gotoyuzo
128eaaad11 * ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.
* ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method
  OpenSSL::Cipher.ciphers. it returns all the cipher names.

* ext/openssl/lib/openssl/cipher.rb:
  - add constants AES128, AES192, AES256. [ruby-dev:28610]
  - reimplement without eval()

* ext/openssl/lib/openssl/digest.rb: reimplement without eval().

* test/openssl/test_cipher.rb, test_digest: fix about reimplemented
  features.

* sample/openssl/cipher.rb: rewrite all.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 11:18:16 +00:00
naruse
f36b7d8fd5 Mon Jun 19 23:40:59 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb: remove default -m0 and fix document.

          * ext/nkf/nkf-8/{nkf.c, config.h, utf8tbl.c, utf8tbl.h}:
            imported nkf 2.0.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 14:52:56 +00:00
(no author)
23f1f6b62d 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@10331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 14:52:56 +00:00
suke
0976e9e32f support some kind of method of word. [ruby-Bugs#3237]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 13:15:59 +00:00
nagai
f29e486c7a * ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 15:05:01 +00:00
akr
e997ab09ba * ext/socket/socket.c (bsock_recv_nonblock): new method
BasicSocket#recv_nonblock.
  (udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock.
  IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock.
  (unix_recvfrom_nonblock): removed.  UNIXSocket#is removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 15:53:28 +00:00
suke
04d2c873b8 support PROPERTYPUTREF. [ruby-talk:183042]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-16 15:11:53 +00:00
suke
20359b9bb2 The return value of WIN32OLE#ole_methods and WIN32OLE#ole_put_methods
should include PROPERTYPUTREF methods.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15 14:11:02 +00:00
matz
f1812021d3 * ext/bigdecimal/lib/bigdecimal/newton.rb (Newton::nlsolve): typo
fixed: raize -> raise.  [ruby-talk:196608]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-10 23:27:39 +00:00
usa
ae229456fb * configure.in: add new configure option `--with-winsock2' for mingw.
* win32/Makefile.sub (config.h): define USE_WINSOCK2 in config.h
  instead of in CPPFLAGS.

* ext/socket/extconf.rb: determine whether to use winsock2 or not
  by using with_config.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-07 02:40:22 +00:00
usa
4e19b0e00f * win32/{configure.bat, setup.mak, Makefile.sub, win32.h}: add
support new configure option `--with-winsock2'.

* win32/win32.c (StartSockets): ditto.

* ext/socket/extconf.rb: ditto.

* win32/win32.c (open_ifs_socket): new function.

* win32/win32.c (StartSockets, rb_w32_socket): use open_ifs_socket()
  instead of socket().
  ifs socket support is backported from trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-07 01:51:47 +00:00
akr
8fb8c60546 * ext/socket/socket.c (sock_s_unpack_sockaddr_in): reject
non-AF_INET/AF_INET6 sockaddr.
  (sock_s_unpack_sockaddr_un): reject non-AF_UNIX sockaddr.
  [ruby-dev:28691]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-05 09:16:14 +00:00
akr
23e5a96017 * ext/socket/socket.c: fix sockaddr_un handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-04 11:45:09 +00:00
akr
bf9e781e33 update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 12:06:22 +00:00
gotoyuzo
13d16b8de4 * ext/openssl/extconf.rb: use create_header.
* ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
  include RUBY_EXTCONF_H.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 10:03:16 +00:00
akr
d9a2d8dab0 fix a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 17:04:24 +00:00
akr
ad565e7cbf * ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
too.  (tested on NetBSD 3.0)
  (s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
  (sock_recvfrom_nonblock): use s_recvfrom_nonblock.
  (ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
  (unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
  (s_accept_nonblock): extracted from sock_accept_nonblock.
  (sock_accept_nonblock): use s_accept_nonblock.
  (tcp_accept_nonblock): new method: TCPServer#accept_nonblock
  (unix_accept_nonblock): new method: UNIXServer#accept_nonblock


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:09 +00:00
nobu
f7213e5648 * ext/extmk.rb (extmake): remove extinit files if no statically linked
extensions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-27 02:30:10 +00:00
nobu
65937b5eb9 * ruby.h, lib/mkmf.rb (create_header): clear command line options for
macros moved to extconf.h.

* ext/extmk.rb (extract_makefile, extmk): made RUBY_EXTCONF_H and
  EXTSTATIC permanent.

* ext/{dbm,digest/*,socket,zlib}/extconf.rb: used $defs and $INCFLAGS.

* {bcc32,win32,wince}/Makefile.sub (COMPILE_C, COMPILE_CXX): added
  $(INCFLAGS).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 23:44:08 +00:00
ttate
7bdb1f5de8 * fixed the problems described in [ruby-dev:28665].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 16:37:58 +00:00