Commit graph

1847 commits

Author SHA1 Message Date
nobu
4cf6bcf78d * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): fix for
initialization of r18168.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 04:45:44 +00:00
nobu
337f8efb63 * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): fix for
initialization of r18168.

* ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): ditto.

* ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
    
* ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-30 05:59:58 +00:00
knu
11873f13cb * ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() is
deprecated.
  (mSyslogConstants_LOG_MASK, mSyslogConstants_LOG_UPTO): Use
  NUM2INT() instead of FIX2INT() when the type of an given object
  is not determined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:51:33 +00:00
nobu
9a65958db9 * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
  ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.

* main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
  no longer used so long time.  based on a patch from Peter Bowen at
  [ruby-core:18208]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 23:15:08 +00:00
nobu
69aeb09eb8 * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalid
preprocessor directives.  a patch from Peter Bowen at
  [ruby-core:18211].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 04:35:13 +00:00
nobu
f805f2c235 * ext/syck/syck.h (ASSERT): fix typo at r18176.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-31 02:31:33 +00:00
nobu
c41a7a2877 * ext/win32ole/win32ole.c: got rid of improper casts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 22:01:36 +00:00
nobu
cff1239436 * ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warnings
about constness and signedness.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 09:27:49 +00:00
nobu
d0b0af847e * ext/bigdecimal/bigdecimal.{c,h} (VpIsNegDoubleZero, VpItoV): unused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 09:06:02 +00:00
nobu
756e804e37 * ext/digest/digest.c (rb_digest_instance_inspect): consitifed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 09:04:45 +00:00
nobu
a1d7f73998 * ext/dl/dl.c (rb_ary_to_ptr), ext/dl/ptr.c (rb_dlmem_delete):
suppress warnings.

* ext/dl/ptr.c (rb_dlptr_inspect), ext/dl/sym.c (rb_dlsym_inspect):
  use %p conversion.

* ext/dl/sym.c (rb_dlsym_guardcall): prevent guard from optimization.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 09:03:33 +00:00
nobu
99bcfc9cce * ext/nkf/nkf-utf8/nkf.c (options): operators without any effect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 08:51:20 +00:00
nobu
f2fd63bd9d * ext/socket/socket.c (init_inetsock_internal): suppress warnings.
* ext/socket/socket.c (unixpath, sock_s_unpack_sockaddr_un),
  (sock_define_const): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 08:48:39 +00:00
nobu
97a94b1158 * ext/zlib/zlib.c: suppress warnings. backported r9918 and r10358.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 08:37:27 +00:00
nobu
4ffe1fe6ba * ext/openssl/openssl_missing.h (d2i_of_void): define for older
versions.  [ruby-dev:35637]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 08:04:25 +00:00
nobu
eea3fae8e9 * ext/curses/extconf.rb: use try_static_assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23 04:53:39 +00:00
nobu
4e00712932 * ext/syck: suppress warnings more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 21:25:49 +00:00
nobu
df87d0291c * ext/syck: suppress warnings more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 21:12:00 +00:00
nobu
ed9097a4cb * ext/syck: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 19:18:44 +00:00
nobu
cbf2c76c4f * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename),
(options): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 19:17:45 +00:00
nobu
e934121534 * ext/openssl: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 19:16:41 +00:00
nobu
c6271c7968 * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
checked.

* ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:58:23 +00:00
knu
074d49e37a * ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
not test ruby/ruby.h, which makes OS X's gcc pick the wrong
  header file from Ruby.framework.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:49:55 +00:00
nobu
ed1605fbf3 * ext/pty/pty.c (raise_from_wait, pty_syswait, get_device_once):
constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 21:57:11 +00:00
mame
fa4390eba9 * ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo. [ruby-core:17713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 14:51:02 +00:00
suke
c2c09b3401 * ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE
to String conversion when negative value.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 15:37:22 +00:00
nobu
cdd1d98ef2 * eval.c (rb_thread_join): new API.
* ext/thread/thread.c (wait_mutex, lock_mutex): wait until the locking
  thread exits.  [ruby-dev:34856]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 11:31:35 +00:00
matz
48c7bb17de * ext/dl/dl.c (rb_str_to_ptr): should propagate taint to dlptr.
* ext/dl/dl.c (rb_ary_to_ptr): ditto.

* ext/dl/sym.c (rb_dlsym_call): should check taint of DLPtrData as
  well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 10:29:14 +00:00
suke
8e002d7d5e remove test_unadvise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 11:01:30 +00:00
suke
e7b32d24a0 commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 10:43:34 +00:00
suke
4a05b80f5b * ext/win32ole/win32ole.c: avoid creating Ruby object during
GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313]

* ext/win32ole/tests: add test_win32ole_event.rb, remove
  testOLEEVENT.rb



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 10:30:42 +00:00
nagai
6c2c370973 * ext/tk/extconf.rb: should not check "tcl.h" & "tk.h" when
--enable-tcltk-framework on MacOS X.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 01:22:52 +00:00
matz
a80cd7ae9b * ext/syslog/syslog.c (syslog_write): syslog operations should be
protected from $SAFE level 4.  a patch from Keita Yamaguchi
  <keita.yamaguchi at gmail.com>.

* ext/syslog/syslog.c (mSyslog_close): ditto.

* ext/syslog/syslog.c (mSyslog_set_mask): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-30 01:31:25 +00:00
suke
803893b8e1 * ext/win32ole/win32ole.c (date2time_str): fix the overflow in
some situation. [ruby-bugs-20793]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 23:05:16 +00:00
suke
16cb7e3c90 * ext/win32ole/win32ole.c(ole_invoke): fix memory leak.
[ruby-bugs-20792]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 12:39:45 +00:00
nobu
5ca882ec08 * ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
needs headers to detect some functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-22 05:16:30 +00:00
matz
281d835f89 wrong commit; sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 17:26:20 +00:00
matz
ed536836db * lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 17:22:33 +00:00
nobu
192f6fd421 * ext/extmk.rb (extmake): check if compile before showing message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 12:43:57 +00:00
nagai
fe08d41da8 * ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 07:08:56 +00:00
nobu
30c9e66cff * ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch from
okkez <okkez000 AT gmail.com> in [ruby-dev:35141].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 01:18:13 +00:00
nagai
9b236f987d * ext/tk/sample/demos-jp/toolber.rb, ext/tk/sample/demos-en/toolber.rb:
fail to back a tear-off marker when reattach the toolbar.

* ext/tk/sample/irbtkw.rbw: freezes when receives SIGINT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 18:54:48 +00:00
nobu
5bcfcce7b4 * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
IO#readlines do not affect $_.  [ruby-core:17277]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 12:58:41 +00:00
nobu
a7d78dad9f * ext/stringio/stringio.c (strio_readline, strio_each)
(strio_readlines): set lastline.  [ruby-core:17257]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 22:14:51 +00:00
nobu
1d0f869ea8 * ext/stringio/stringio.c (strio_sysread): should not raise at empty
read.  a patch from Arthur Schreiber at [ruby-core:17245].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-14 13:52:41 +00:00
usa
82ce1f0a8d * ext/openssl/ossl.h: include winsock.h if USE_WINSOCK2 is not defined.
a patch from arton <artonx at yahoo.co.jp> in [ruby-dev:35078]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-12 12:06:54 +00:00
mame
f9ac9e2dfc * ext/stringio/stringio.c (strio_init): rewind when reopened.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-11 18:30:10 +00:00
nobu
05f4cafde0 * ext/tk: check proper conditions. [ruby-dev:35047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-11 15:56:22 +00:00
nobu
645629a18f * ext/extmk.rb: negate default of --without-ext if --with-ext is
given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10 11:13:58 +00:00
nobu
9f8ead3f5a * ext/extmk.rb: negate default of --without-ext.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10 09:12:19 +00:00