gotoyuzo
d995f01f67
* 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/trunk@10209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 10:03:16 +00:00
akr
7fd1a4b424
fix a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 17:04:24 +00:00
akr
5f4ad759f1
* 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/trunk@10203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:09 +00:00
nobu
2ad6b5a887
* ext/extmk.rb (extmake): remove extinit files if no statically linked
...
extensions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-27 02:30:10 +00:00
nobu
e34b2a73e6
* 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/trunk@10193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 23:44:08 +00:00
nobu
32a75c9dcb
* ext/extmk.rb: deal with $static set in extconf.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 16:43:45 +00:00
akr
31328e55fe
update nonblocking methods document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 05:06:59 +00:00
gotoyuzo
cffba3b471
* ext/openssl/lib/openssl/ssl.rb
...
(OpenSSL::SSL::SocketForwarder#setsockopt,getsockopt): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-23 18:14:05 +00:00
akr
3ef6ba3d12
add reason for accept(2) failure in accept_nonblock.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 22:34:20 +00:00
akr
dc3037bc48
update *_nonblock doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 22:11:30 +00:00
akr
096ff284ca
* rubyio.h (rb_io_set_nonblock): declared.
...
* io.c (rb_io_set_nonblock): new function.
(io_getpartial): nonblocking read support.
(io_read_nonblock): new method: IO#read_nonblock.
(io_write_nonblock): new method: IO#write_nonblock.
* ext/socket/socket.c (s_accept): retry for EWOULDBLOCK.
revert [ruby-talk:113807].
(sock_connect_nonblock): new method: Socket#connect_nonblock.
(sock_accept_nonblock): new method: Socket#accept_nonblock.
(sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock.
[ruby-core:7917]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 07:38:42 +00:00
nobu
fbbc511d65
* ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-17 15:42:21 +00:00
gotoyuzo
1fbcb92ec8
* ext/openssl/ossl_cipher.c (add_cipher_name_to_ary): should return
...
value. [ruby-dev:28627]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-11 09:31:27 +00:00
gotoyuzo
55ef220fe0
* 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/ossl_cipher.c (ossl_cipher_init): refine warning message.
* ext/openssl/lib/openssl/cipher.rb: reimplement without eval() and
add constants AES128, AES192, AES256. [ruby-dev:28610]
* 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/trunk@10137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-08 00:12:00 +00:00
suke
2bdd9d6eba
ext/win32ole/win32ole.c (add_event_call_back): should not
...
delete event handler when the event name is not entried.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-01 09:05:08 +00:00
suke
9154b19bae
ole_param_ole_type should return "unknown type" string when ITypeInfo::GetFuncDesc failed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-30 23:37:54 +00:00
suke
2b5beeed15
add test/win32ole/test_win32ole_variant.rb.
...
ext/win32ole/win32ole.c: use ANSI C style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-30 13:11:12 +00:00
gotoyuzo
968eb23418
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): should initialize
...
flag. [ruby-core:07785]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-29 13:52:15 +00:00
nagai
3df4f07a6b
* ext/tk/tcltklib.c (delete_slaves): maybe increment the reference
...
count of a NULL Tcl_Obj [ruby-core:07759].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-25 09:02:00 +00:00
nagai
09cc0b160e
* ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer
...
[ruby-core:07744] and memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-21 06:22:43 +00:00
nagai
bce4ed2f72
* ext/tk/lib/multi-tk.rb: add a binding to a container for a slave IP.
...
* ext/tk/lib/tk.rb: update RELEASE_DATE.
* ext/tk/tcltklib.c: forget to reset a Tcl interpreter.
* ext/tk/stubs.c: fix potential bugs about handling rb_argv0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-18 08:43:10 +00:00
suke
93f080c12f
remove testOLEPARAM.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-08 09:16:58 +00:00
suke
29ba4ff416
add WIN32OLE_METHOD#inspect, WIN32OLE_PARAM#inspect
...
add test/win32ole/test_win32ole_param.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-08 09:13:30 +00:00
suke
de558c7995
remove testOLEPARAM.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-08 09:11:39 +00:00
suke
11974f3b6d
WIN32OLE_TYPELIB.new accepts OLE files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-07 13:16:46 +00:00
nagai
495d872fac
* ext/tk/lib/tk/panedwindow.rb: lack of arguments. [ruby-core:7681]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-06 02:21:20 +00:00
nagai
8ba823c485
* ext/tk/tcltklib.c: fix SEGV when embedding to an application.
...
[ruby-core:7600]
* ext/tk/tcltklib.c: fix SEGV at exit. [ruby-talk:186489]
* ext/tk/tkutil/tkutil.c: follow to changing specification of
instance_eval on ruby-1.9.x.
* ext/tk/lib/tk.rb: ditto.
* ext/tk/lib/multi-tk.rb: ditto.
* ext/tk/lib/tk.rb: remove warning about redefinition of methods.
* ext/tk/lib/tk/variable.rb: remove warning about unseting Tcl
variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-05 16:08:45 +00:00
suke
3ca351ec23
remove testOLEMETHOD.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-01 09:21:27 +00:00
suke
63fa2de637
remove 3 test
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-01 06:25:41 +00:00
suke
3ff87cc53f
add WIN32OLE_TYPE#inspect, WIN32OLE_VARIABLE#inspect
...
add test/win32ole and remove some test script from ext/win32ole/tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-01 06:23:07 +00:00
suke
801443f3ac
change the behavior of WIN32OLE#[] and WIN32OLE#[]=.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-29 14:12:49 +00:00
usa
e72073102c
* ext/nkf/nkf-utf8/nkf.c (nkf_each_char_to_hex, encode_fallback_subchar,
...
e2w_conv): support C90 compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-29 01:12:22 +00:00
naruse
e49d874542
* ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: imported nkf 2.0.6.
...
* Add --ic / --oc option and mapping tables.
* Add fallback option.
* Add --no-best-fit-chars option.
* Fix some bugs.
* ext/nkf/nkf.c (nkf_split_options): added for parse option string.
* ext/nkf/lib/kconv.rb (Kconv.to*): add -m0.
Note that Kconv.to* still imply -X.
* ext/nkf/test.rb: Removed. Obsolete by test/nkf.
* ext/.document: enabled documents in nkf and kconv
* ext/nkf/nkf.c, ext/nkf/lib/kconv.rb: Add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-27 13:48:21 +00:00
usa
5bc9512a0b
* ext/win32ole/win32ole.c (folevariant_value): could not compile
...
with C90 compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-20 02:14:24 +00:00
suke
6c0256933b
change behavior of converting OLE Variant object with VT_ARRAY|VT_UI1
...
and Ruby String object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-19 00:56:59 +00:00
gotoyuzo
1b3ca9aa3a
* ext/openssl/ossl_ssl.c, ext/openssl/ossl_nsspki.c: should use
...
"rb_str_new(0, 0)" to make empty string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-15 07:42:00 +00:00
suke
88ea87db21
* ext/win32ole/win32ole.c(ole_val2olevariantdata): support VT_VARIANT in
...
WIN32OLE_VARIANT.new().
* ext/win32ole/tests/testOLEVARIANT.rb: ditto.
* ext/win32ole/tests/testOLEPARAM.rb: test method name should not be
duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-12 08:09:48 +00:00
akr
192fcacebf
* lib/fileutils.rb (FileUtils.cp_r): implement :remove_destination
...
option.
* ext/extmk.rb: use :remove_destination to install extension libraries
to avoid SEGV.
[ruby-dev:28417]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-03 12:24:53 +00:00
aamine
469f1f7b49
* ext/dl/.cvsignore: ignore callback.h.
...
* ext/ripper/.cvsignore: ignore eventids2table.c.
* ext/socket/.cvsignore: ignore constants.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-03 05:41:53 +00:00
akr
04946de81b
* mkconfig.rb: generate RbConfig instead of Config.
...
* instruby.rb, rubytest.rb, runruby.rb, bcc32/Makefile.sub,
ext/extmk.rb, ext/dl/extconf.rb, ext/iconv/charset_alias.rb,
lib/mkmf.rb, lib/rdoc/ri/ri_paths.rb,
lib/webrick/httpservlet/cgihandler.rb,
test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb,
test/ruby/envutil.rb, test/soap/calc/test_calc_cgi.rb,
test/soap/header/test_authheader_cgi.rb, test/soap/ssl/test_ssl.rb,
win32/mkexports.rb, win32/resource.rb: Use RbConfig instead of
Config.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-20 08:34:53 +00:00
gotoyuzo
a6c936c15b
* ext/openssl/ossl.h (OSSL_Debug): should not use __func__.
...
[ruby-dev:28339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-19 16:00:04 +00:00
ocean
3770f98992
* ext/zlib/zlib.c: supress warning on test/zlib. [ruby-dev:28323]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-14 06:17:24 +00:00
matz
7f72360259
* parse.y (parser_parse_string): mention "regexp" in a error
...
message. a patch from Mauricio Fernandez <mfp at acm.org>
[ruby-core:07340]
* eval.c (rb_f_autoload): check if ruby_cbase is nil (during
instance_eval for objects cannot have singleton classes,
e.g. fixnums and symbols). [ruby-dev:28178]
* gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while
invoking finalizers.
* gc.c (rb_gc_finalize_deferred): ditto.
* io.c (rb_write_error2): use fwrite(3) if rb_stderr is not
updated or is already freed. [ruby-dev:28313]
* eval.c (error_line): include the class name of a surrounding
method in error position description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-13 04:53:22 +00:00
suke
9a59edfb4e
add WIN32OLE.create_guid.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-11 13:00:46 +00:00
ocean
0a8f5ad543
* ext/zlib/zlib.c: should not access ruby objects in finalizer.
...
[ruby-dev:28286]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-07 14:05:55 +00:00
ocean
22d5757479
* ruby.h: fixed prototype.
...
* ext/syck/rubyext.c: defined symbol ID as global variable as others.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-03 10:28:27 +00:00
matz
5675cdbd41
* eval.c: unify ruby_class (for method definition) and ruby_cbase
...
(for constant reference).
* eval.c (rb_call0): use TMP_ALLOC() instead of allocating
a temporary array object.
* eval.c (eval): need not to protect $SAFE value.
[ruby-core:07177]
* error.c (Init_Exception): change NameError to direct subclass of
Exception so that default rescue do not handle it silently.
* struct.c (rb_struct_select): update RDoc description.
[ruby-core:7254]
* numeric.c (int_upto): return an enumerator if no block is
attached to the method.
* numeric.c (int_downto): ditto.
* numeric.c (int_dotimes): ditto.
* enum.c (enum_first): new method Enumerable#first to take first n
element from an enumerable.
* enum.c (enum_group_by): new method Enumerable#group_by that
groups enumerable values according to their block values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-03 09:15:42 +00:00
ocean
e4f1feac3e
* ext/syck/syck.c (syck_move_tokens): should reset p->cursor or etc
...
even if skip == 0. This causes buffer overrun.
(ex: YAML.load('--- "..' + '\x82\xA0' * 511 + '"'))
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-03 06:11:13 +00:00
ocean
8913015f04
* ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
...
emitter's marker. if marker points to the end of buffer, this is
buffer overrun. (ex: YAML.dump("." * 12288))
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 15:02:49 +00:00
nagai
598451429c
* ext/tk/lib/multi-tk.rb: add MultiTkIp#eval and bg_eval.
...
* ext/tk/lib/tk/namespace.rb: TkNamespace#eval was enbugged at the
last commit. Now it will return a proper object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-31 03:01:31 +00:00