nobu
9300355bec
* ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): should use
...
OPENSSL_free instead of free. a patch from Charlie Savage at
[ruby-core:22858].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 06:10:45 +00:00
nobu
ffbaa25b62
* class.c: fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 05:55:13 +00:00
nobu
e9b98f413e
* configure.in (AC_HEADER_DIRENT): added.
...
* include/ruby/ruby.h (NUM2INT, rb_special_const_p): returns true
and false instead of Qtrue and Qfalse for platforms where VALUE
is bigger than int.
* gc.c (gc_stress_set), ext/openssl/ossl_asn1.c (decode_bool): got
rid of variables named `bool'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 01:42:21 +00:00
nobu
11e89eb719
* configure.in (struct stat.st_size): may be huge.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 01:16:38 +00:00
nobu
96c31ac787
* bignum.c (bigfixize): zero length Bignum is 0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 00:30:15 +00:00
nobu
0f71c10acb
* util.c (rv_strdup): macro to duplicate nul-terminated string.
...
[ruby-core:22852]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 23:06:51 +00:00
akr
2412162959
* ext/openssl: suppress warnings.
...
* ext/openssl/ossl.h (OSSL_Debug): don't use gcc extention for
variadic macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 13:44:37 +00:00
usa
61c216748c
* win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
...
later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 13:31:11 +00:00
akr
a69f46bc2b
* ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because
...
OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 13:16:19 +00:00
nobu
50d1f54d4d
* io.c (nogvl_copy_stream_read_write, copy_stream_body): use size_t.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 10:40:33 +00:00
nobu
d1abc53721
* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
...
numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c,
transcode_data.h, util.c, variable.c, vm_dump.c,
include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c:
suppress VC type warnings. [ruby-core:22726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 09:16:15 +00:00
nobu
080525aa68
* marshal.c (div0), numeric.c (infinite_value): new functions to
...
get rid of VC divion by 0 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 09:09:15 +00:00
nobu
1c6ca1eec5
* vm.c (rb_vm_get_sourceline), vm_insnhelper.c (vm_throw): use
...
rb_num_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 09:02:06 +00:00
nobu
7cdc73235a
* st.c: use st_index_t for indexes instead of int.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 08:56:31 +00:00
nobu
dd41485efb
* configure.in (RUBY_CHECK_SIZEOF): if same size type is found, no
...
more calculation is needed.
* configure.in (RUBY_DEFINT): falls back to RUBY_CHECK_SIZEOF if
size is not immediate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 00:30:55 +00:00
akr
e166801d3d
* transcode_data.h: suppress warnings of overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 00:24:51 +00:00
akr
53d061ec33
* include/ruby/encoding.h: suppress warnings of overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 00:16:00 +00:00
nobu
ab46076e38
* configure.in (warnflags): added some default flags,
...
pointer-arith, write-strings and shorten-64-to-32, but suppress
unused-parameter and missing-field-initializers, if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:49:07 +00:00
nobu
2b9df35cd0
* configure.in (RUBY_CHECK_HUGE): checks whether a value range is
...
larger than long.
* file.c (rb_stat_blocks): struct stat.st_blocks may be larger
than long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:27:07 +00:00
nobu
748ed24234
* io.c (copy_stream_fallback_body): off_t may be larger than long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:22:52 +00:00
nobu
f61b80079e
* iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:19:24 +00:00
nobu
d7720b2fc0
* process.c (rb_f_sleep): time() needs time_t.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:16:08 +00:00
nobu
383b905f5e
* random.c (fill_random_seed): enclosed conditionally used
...
variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:14:51 +00:00
nobu
bb1811d6a3
* thread_pthread.c (ruby_init_stack): range of rlim_cur may be
...
larger than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:12:56 +00:00
nobu
bb8a49812a
* missing/vsnprintf.c (BSD_vfprintf): commented out code which has
...
no effect at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:09:58 +00:00
akr
68b3cd3ea2
use argument only if it is absolute path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 17:47:20 +00:00
akr
de292258b9
* configure.in: strip spaces from ruby_version.
...
Sun C 5.9 SunOS_i386 Build47_dlight 2007/05/22 generates
`ruby_version= 1 "." 9 "." 1'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 17:12:35 +00:00
nobu
fd0a91b5ab
* dir.c (dir_seek): use long for seekdir().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 16:18:10 +00:00
nobu
1c2cc09063
* tool/ytab.sed: replaces backslashes with slash for nmake.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 16:08:24 +00:00
akr
d1bc6cc720
* time.c (time_mload): don't clear tm_mday.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 12:23:41 +00:00
nobu
976c01b404
* ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol
...
name. [ruby-dev:38150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 11:13:40 +00:00
usa
612fe10526
* test/dl/test_base.rb: decide dll name of MSVCRT from RUBY_SO_NAME on native Win32 platforms. [ruby-core:22828]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 08:39:37 +00:00
usa
df63af6be2
* ext/dl/win32/lib/Win32API.rb: call by :stdcall as default.
...
[ruby-core:22826]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 08:27:21 +00:00
nobu
8a41bd7f51
* ChangeLog: mentiond about SUSv3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 06:59:12 +00:00
nobu
315ee838bc
* parse.y (stack_type): uses VALUE which is able to be stored
...
parser stack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:27:11 +00:00
nobu
c8d40b9a3d
* win32/win32.c (init_env): set TMPDIR if none of TMPDIR, TMP,
...
TEMP is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:22:38 +00:00
nobu
bf065f2e2e
* win32/win32.c (rb_w32_telldir, rb_w32_seekdir): should use long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:16:56 +00:00
nobu
f5315680aa
* ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:06:57 +00:00
nobu
7e59a8c5e4
* ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.
...
[ruby-core:22822]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:03:14 +00:00
nobu
745bc1fd83
* ruby.c (ruby_init_loadpath_safe): expands libpath and removes
...
last /lib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 21:12:49 +00:00
nobu
8231655dea
* time.c (time_to_i, time_hash): time_t may be bigger than long
...
and int.
* time.c (time_timeval, rb_time_timeval, obj2nsec, time_strftime),
(time_mdump, time_mload): suppress warnings.
* win32/Makefile.sub (config.h): added TIMET2NUM and NUM2TIMET.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 19:47:46 +00:00
nobu
0032476a24
* win32/win32.c: suppress warnings. based on a patch from Charlie
...
Savage at [ruby-core:22804].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 19:29:51 +00:00
nobu
cb434b4a80
* signal.c (sig_trap): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 19:22:11 +00:00
nobu
c26d21bf71
* win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of
...
CRTDEFFLAGS. cf. [ruby-core:22725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 11:07:42 +00:00
nobu
0641a4d83e
* include/ruby/win32.h (strcasecmp, strncasecmp): use _ prefixed
...
versions to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 10:58:49 +00:00
nobu
5bfb9a63b7
* ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppress
...
warnings. [ruby-core:22792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 10:40:07 +00:00
nobu
2e54fe9d4d
* array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
...
missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 05:43:14 +00:00
usa
f8147318dd
* win32/Makefile.sub (OPTFLAGS): simplified.
...
forgotten to commit at r22849
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 04:52:29 +00:00
nobu
a3e3fcbcd0
* win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
...
and so on. based on a patch by Charlie Savage at
[ruby-core:22794]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 04:45:51 +00:00
nobu
5157e572b8
* win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so
...
that extconf.rb could refer it. [ruby-core:22725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 03:27:54 +00:00