nobu
d772c1af14
* dln.c (conv_to_posix_path): removed.
...
* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
VALUE instead of a pointer to static buffer.
* ruby.c (push_include_cygwin): fixed buffer overflow.
[ruby-dev:31297]
* ruby.c (ruby_init_loadpath): not convert built-in paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-26 04:38:07 +00:00
nobu
0ee4c1a6e5
* intern.h (is_ruby_native_thread): removed since declared as an int
...
function in ruby.h already.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-22 07:07:22 +00:00
nobu
60e3b1b441
* file.c (rb_file_s_rename): deleted code to get rid of a bug of
...
old Cygwin.
* file.c (rb_file_truncate): added prototype of GetLastError()
on cygwin. [ruby-dev:31239]
* intern.h (is_ruby_native_thread): prototype.
* missing/strftime.c (strftime): fix printf format and actual
arguments.
* ext/Win32API/Win32API.c (Win32API_initialize): ditto.
* ext/tk/tcltklib.c (ip_finalize): ditto.
* ext/dl/ptr.c (rb_dlptr_inspect): ditto. [ruby-dev:31268]
* ext/dl/sym.c (rb_dlsym_inspect): ditto.
* ext/socket/getnameinfo.c: include stdio.h always.
* ext/win32ole/win32ole.c (ole_hresult2msg, folevariable_name,
folevariable_ole_type, folevariable_ole_type_detail,
folevariable_value, folemethod_visible): missing return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-22 05:33:47 +00:00
nobu
22cbdad1d4
* common.mk: inverted rules order.
...
* thread_win32.ci (w32_create_thread): bcc does not have
_beginthreadex().
* bcc32/Makefile.sub: headers have moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 08:48:29 +00:00
nobu
521da028b5
* bcc32/{Makefile.sub,configure.bat,setup.mak: configure_args
...
support.
* bcc32/setup.mak: check runtime version.
* win32/win32.c (rb_w32_open_osfhandle): prototype has changed
in bcc 5.82.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 08:32:34 +00:00
nobu
bce1c4b27d
* lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
...
only if extconf.h is created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 08:07:37 +00:00
nobu
c0e4f24ef6
* {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 06:39:26 +00:00
nobu
6d9f1d4762
* win32/resource.rb: include patchlevel number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 06:32:40 +00:00
nobu
edae1582e6
* lib/mkmf.rb (init_mkmf): should remove mkmf.log too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 03:06:50 +00:00
tadf
b3a2912d18
* lib/date/format.rb (Date._parse): completes calendar week based year.
...
* lib/date/format.rb (Date._parse): detects year of ordinal date in
extended format.
* and some trivial adjustments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-20 16:54:36 +00:00
nobu
a86b7ee462
* ext/openssl/ossl_config.c (ossl_config_set_section): do not
...
initialize aggregations with dynamic values. [ruby-talk:259306]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-20 06:22:54 +00:00
nobu
f47618f89b
* eval_error.ci (get_backtrace): check the result more.
...
[ruby-dev:31261] [ruby-bugs-12398]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-19 10:24:17 +00:00
nobu
9bf8a37572
* bignum.c (rb_big_lshift, rb_big_rshift): separated functions
...
to get rid of infinite recursion. fixed calculation in edge
cases. [ruby-dev:31244]
* numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-19 05:38:48 +00:00
nobu
f2dd1b158e
* bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-18 07:57:45 +00:00
matz
0b0046dc2e
* time.c (time_succ): Time#succ should return a time object in the
...
same timezone mode to the original. [ruby-talk:260256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-17 23:53:01 +00:00
matz
217db90e87
* numeric.c (fix_pow): integer power calculation: 0**n => 0,
...
1**n => 1, -1**n => 1 (n: even) / -1 (n: odd).
* test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-16 15:56:16 +00:00
matz
8c3546c744
* lib/base64.rb (Base64::b64encode): should not specify /o option
...
for regular expression. [ruby-dev:31221]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-16 15:47:16 +00:00
nobu
8af410bdb5
* string.c (rb_str_rindex_m): accept string-like object convertible
...
with #to_str method, as well as rb_str_index_m. [ruby-core:11692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-16 09:29:35 +00:00
nobu
12d19d3887
* sprintf.c (rb_f_sprintf): more checks for format argument.
...
[ruby-core:11569], [ruby-core:11570], [ruby-core:11571],
[ruby-core:11573]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 20:45:55 +00:00
nobu
7da059bddb
* bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 15:26:12 +00:00
nobu
26b5fd1e7b
* bignum.c (rb_big_neg): SIGNED_VALUE isn't in 1.8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 15:00:00 +00:00
nobu
f298a1a670
* ext/digest/digest.c (rb_digest_instance_update,
...
rb_digest_instance_finish, rb_digest_instance_reset,
rb_digest_instance_block_length): %s in rb_raise() expects char*.
[ruby-dev:31222]
* ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231]
* ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231]
* ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise()
instead of rb_raise(). [ruby-dev:31222]
* ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232]
* ext/syck/syck.h: include stdlib.h for malloc() and free().
[ruby-dev:31232]
* ext/syck/syck.h (syck_parser_set_input_type): prototype added.
[ruby-dev:31231]
* win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232]
* win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 13:24:51 +00:00
nobu
6a4bfa57fd
* bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 12:09:42 +00:00
nobu
b47daf811a
* bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 12:07:46 +00:00
nobu
fa1bfaf741
* bignum.c (rb_cstr_to_inum): check leading non-digits.
...
[ruby-core:11691]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 10:05:37 +00:00
nobu
dcfd7ec4b6
* bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-14 19:42:25 +00:00
nobu
d9ef35c83f
* enum.c (sort_by_cmp): check if reentered. [ruby-dev:24291]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-14 05:04:09 +00:00
nahi
7b8c142696
* test/openssl/test_pkcs7.rb: reverted the previous patch. it should
...
be as it was to check interface compatibility. sorry for bothering
with this.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-14 03:46:37 +00:00
nahi
2ab2a56f12
* test/openssl/test_pkcs7.rb: follow the library change. applied a
...
patch from <zn at mbf.nifty.com> [ruby-dev:31214].
NOTE: r12496 imports the latest openssl libs from trunk to ruby_1_8
though its's not ChangeLog-ed. maintainer should aware that.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-14 03:29:30 +00:00
matz
bd3af05e48
* numeric.c (fix_pow): 0**2 should not raise floating point
...
exception. [ruby-dev:31216]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 17:53:10 +00:00
matz
98b7080d2a
* numeric.c (int_pow): wrong overflow detection. [ruby-dev:31215]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 17:27:40 +00:00
matz
356d61050c
* numeric.c (int_pow): wrong overflow detection. [ruby-dev:31213]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 16:46:39 +00:00
akr
bef2f087b6
* lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
...
http_proxy environment variable to avoid case insensitive
environment search.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 07:59:40 +00:00
nobu
5e862d6692
* win32/win32.c (CreateChild): enclose command line except for
...
command.com which can not handle quotes. [ruby-talk:258939]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 06:02:18 +00:00
nobu
22c20cd4d9
* lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
...
::CONFIG which is an alias of MAKEFILE_CONFIG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 01:10:48 +00:00
nobu
420a5fe48e
* struct.c (rb_struct_init_copy): disallow changing the size.
...
[ruby-dev:31168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 08:03:18 +00:00
nahi
d7e32900cc
# the previous commit should include random.c
...
* random.c: documentation fix. srand(0) initializes PRNG with '0',
not with random_seed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-11 14:44:22 +00:00
nahi
1141ad0217
* random.c: documentation fix. srand(0) initializes PRNG with '0',
...
not with random_seed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-11 14:42:47 +00:00
nobu
cab1e49429
* bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 05:50:10 +00:00
nobu
b6ddf55de9
* eval.c (rb_interrupt): suppress a gcc's officious warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-06 06:22:59 +00:00
usa
42b4e02760
* numeric.c (int_pow): fix previous nubu's commit.
...
* test/ruby/test_fixnum.rb: new test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-05 07:45:02 +00:00
nobu
890d25d46f
* numeric.c (int_pow): even number multiplication never be negative.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-05 06:56:10 +00:00
nobu
1e23f4950d
* sprintf.c (rb_f_sprintf): sign bit extension should not be done
...
if FPLUS flag is specified. [ruby-list:39224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-02 05:34:45 +00:00
matz
336722930a
* array.c (rb_ary_initialize): should call rb_ary_modify() first.
...
[ruby-core:11562]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-30 07:10:43 +00:00
nobu
0ba42821dd
* parse.y (parser_yylex): return non-valid token for an invalid
...
instance/class variable name. a patch from from Yusuke ENDOH
<mame AT tsg.ne.jp>. [ruby-dev:31095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 15:17:02 +00:00
nobu
955a978aef
* hash.c: purged trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 05:15:46 +00:00
nobu
fbf7e8ca5c
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
...
patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 02:23:13 +00:00
usa
b3e55118aa
* 2007-06-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:37:44 +00:00
nobu
941c978a92
* process.c (ruby_setreuid, ruby_setregid): rename to get rid of name
...
clash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:35:23 +00:00
nobu
66169822de
* process.c (proc_exec_v, rb_proc_exec): preserve errno.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:33:48 +00:00