matz
66054b9e3d
* ruby.c (require_libraries): req_list may be NULL. [ruby-dev:35008]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 06:40:02 +00:00
nobu
e39b93b86e
* complex.c (make_patterns): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 05:42:04 +00:00
nobu
85976cf893
* rational.c (make_patterns): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 05:39:57 +00:00
nobu
6cdc89332e
* vm_core.h (struct rb_vm_struct): moved ruby_debug, ruby_verbose, and
...
rb_progname.
* ruby.c (rb_argv0): no longer used.
* vm.c: getters/setters for ruby_{debug,verbose}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 05:18:03 +00:00
nobu
9fb521515d
* vm_core.h (struct rb_vm_struct): moved src_encoding_index.
...
* ruby.c (struct cmdline_options): moved setids and req_list, and the
latter is now an array, to prevent memory leak.
* ruby.c (cmdline_options_init): added.
* ruby.c (add_modules, require_libraries, init_ids, forbid_setid): use
struct cmdline_options.
* vm.c (vm_init2): initialize src_encoding_index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 04:20:07 +00:00
nobu
efe5422e6a
* vm.c (rb_thread_recycle_stack_release): reduce redundant code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 02:58:23 +00:00
nobu
10bfa5d49f
* include/ruby/intern.h (Init_stack): make to call ruby_init_stack.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 00:54:23 +00:00
wanabe
ddf83922a2
* vm_insnhelper.c, vm.c, proc.c : revert r17021. [ruby-dev:34997]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 23:16:46 +00:00
ko1
7e6c9db4e2
* bootstraptest/pending.rb: move/remove solved issues.
...
* bootstraptest/test_class.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 18:13:09 +00:00
knu
2bafbe1465
Ignore config.status.lineno.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 17:39:53 +00:00
knu
ecc1dedabb
* ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.
...
[ruby-list:45018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 17:35:41 +00:00
wanabe
a5fdfa5884
* vm_insnhelper.c, vm.c, proc.c (proc_call): allow call method with
...
block that both is written in C. [ruby-dev:34273] [ruby-core:15551]
* proc.c (curry): use proc_call instead of rb_proc_call.
[ruby-dev:34273] [ruby-core:15551]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 13:24:13 +00:00
mame
65ec3ed9ca
* test/zlib/test_zlib.rb: add tests to achieve over 90% test coverage
...
of zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 12:51:25 +00:00
wanabe
9393cc45c2
* vm_insnhelper.c (vm_throw): regard break as return in lambda.
...
[ruby-dev:34646]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 11:18:54 +00:00
ko1
a99140631c
* gc.c: add a build option "CALC_EXACT_MALLOC_SIZE".
...
This option enables to calculate exact size of current
allocated size by malloc(). You can access these information
with GC.malloc_allocated_size and GC.malloc_allocations.
This option consume additional memory as a header of each memory
object. This option also helps to find out xmalloc()/xfree()
consistency. If you get trouble with this option, some extension
using "free()" instead of "xfree()".
This options is disabled by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 10:27:06 +00:00
ko1
72ba13aa8e
* array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,
...
enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c,
io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c,
string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c,
vm.c, gc.c:
allocated memory objects by xmalloc (ruby_xmalloc) should be
freed by xfree (ruby_xfree).
* ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c,
ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c,
ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c,
ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c,
ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c:
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 10:01:40 +00:00
akr
4a7311e129
avoid dead lock on MacOS X.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 03:01:55 +00:00
akr
cd6414267f
* hash.c (hash_i): make Hash#hash order insensitive.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 16:19:47 +00:00
knu
aaaab31d8b
* ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix up
...
initialize_copy; [ruby-list:45016].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 14:57:16 +00:00
nobu
b5490da26b
* configure.in (VENDOR_DIR): use LIBDIR instead of PREFIX as well as
...
SITE_DIR. a patch from Richard Brown <rbrown AT exherbo.org> in
[ruby-core:17129].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 13:15:04 +00:00
nobu
0455e8ea9a
* io.c (rb_f_open), re.c (rb_reg_search), transcode.c (str_transcode):
...
suppress warnings.
* util.c (quorem, rv_alloc, nrv_alloc): only used in dtoa().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 12:38:03 +00:00
nobu
126abc5c47
* configure.in (CFLAGS, CXXFLAGS): append default flags.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 07:06:19 +00:00
usa
c7144179bb
* io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int.
...
fixed [ruby-dev:34979]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 16:26:05 +00:00
ko1
bf4626ed72
* vm_insnhelper.c (vm_callee_setup_arg): check simple flag before
...
calling setup_arg function(). this change reduce function call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 14:48:07 +00:00
usa
12cec48616
* win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.
...
* ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo,
freehostent, freeaddrinfo): undef before define because these are
macros in some versions of Windows SDK.
merged from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 12:52:30 +00:00
nobu
76fc936432
* test/iconv/utils.rb (default_test): override not to croak.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 09:25:46 +00:00
usa
6d5e291f7d
* include/ruby/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 07:43:45 +00:00
akr
f6ec71fc4c
* gc.c (count_objects): clear hash after counting objects.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 06:05:44 +00:00
nobu
8471463a4a
* ext/iconv/iconv.c (iconv_iconv): no needs to initialize with Qnil
...
before rb_scan_args call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 03:21:43 +00:00
akr
f1296598a2
* lib/time.rb (Time.xmlschema): don't use float. fix
...
http://rubyforge.org/tracker/index.php?func=detail&group_id=426&atid=1698&aid=20504
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 15:08:12 +00:00
mame
00aae60f73
* test/ruby/test_gc.rb: add tests to achieve over 90% test coverage of
...
gc.c.
* test/ruby/test_objectspace.rb: ditto.
* test/ruby/test_marshal.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 14:57:05 +00:00
mame
5e9b9ff9cb
* gc.c (rb_objspace_alloc): this function is needed only when
...
ENABLE_VM_OBJSPACE macro is defined.
* vm.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 14:41:41 +00:00
mame
437af4f46f
* test/stringio/test_stringio.rb: add tests to achieve over 95% test
...
coverage of stringio.
* test/strscan/test_stringscanner.rb: ditto for strscan.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 14:33:01 +00:00
mame
cbbc06dcf7
* eval.c (ruby_finalize_0): clear trace_func after executing END
...
procs.
* thread.c: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 14:27:09 +00:00
akr
18d4c1f044
* gc.c (os_obj_of): heaps may be modified in yield.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 13:52:02 +00:00
mame
eef10d71dd
* st.c (st_reverse_foreach): comment out unused function.
...
* util.c (dtoa): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 12:47:48 +00:00
knu
55fece6379
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):
...
Add a null check for ssl; submitted by akira yamada
in [ruby-dev:34950].
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if
SSL_OP_NO_TICKET is present; submitted by akira yamada
in [ruby-dev:34944].
* test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a
workaround for the case where OpenSSL is configured with
--enable-tlsext; submitted by akira yamada in [ruby-dev:34944].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 11:36:55 +00:00
mame
83b4c1c424
* thread.c (thread_set_trace_func_m): fix check for proc argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 11:24:40 +00:00
mame
7493685b3b
* lib/rexml/document.rb (REXML::Document:write): leaky modification
...
trans -> transitive. [ruby-dev:32040], r13686
* lib/rexml/text.rb (Text.check): fix check for illigal characher.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 11:22:32 +00:00
nobu
7e9e152526
* test/iconv/utils.rb (TestIconv.testcase): make test cases conditionally.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 05:35:00 +00:00
nobu
5d75d9bf3d
* ext/iconv/iconv.c (iconv_create): find encoding without options.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 05:03:46 +00:00
nobu
b35b33c751
* test/iconv/test_{basic,option}.rb, test/iconv/utils.rb: added.
...
* test/iconv/test_partial.rb: renamed from test_simple.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 04:58:41 +00:00
nobu
28c5fe3c6c
* test/iconv/test_simple.rb: added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 01:58:49 +00:00
ko1
9eec758a1e
* string.c (hash): should be "static".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 23:13:27 +00:00
mame
d6ada9f14b
* test/ruby/test_transcode.rb: add tests for iso-2022-jp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 16:48:07 +00:00
mame
4a14d3c04b
* test/ruby/test_process.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 16:30:03 +00:00
mame
c9977b82a8
* ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 14:11:06 +00:00
matz
a690ad4698
* object.c (rb_obj_alloc): RDoc updated. a patch from Gaston
...
Ramos <ramos.gaston at gmail.com> in [ruby-core:17073].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:55:14 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
nobu
106e48e5d8
* ext/iconv/iconv.c (iconv_iconv): fix for length argument and now
...
allows range. [ruby-core:17092]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 08:52:25 +00:00