usa
7e4ca52669
* test/ruby/test_process.rb: mswin specs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 06:27:44 +00:00
nobu
33f7e74998
* test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to run
...
tests without install.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 05:52:14 +00:00
nobu
55bde4fbbd
* gc.c (define_final): cannot define finalizer for immediate
...
values. [ruby-core:21500]
* gc.c (define_final): freezes or hides internal values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 03:18:16 +00:00
nobu
3899c1bed7
* thread.c (rb_time_timeval): made a real prototype. a patch from
...
Marcus Rueckert <darix AT opensu.se> at [ruby-core:21492].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 02:31:54 +00:00
svn
92ad9fb2d7
* 2009-01-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 15:27:39 +00:00
matz
d47e8e81a0
* array.c (ary_double_capa): a new function to expand array more
...
aggressively. [ruby-core:21460]
* array.c (rb_ary_store): use ary_double_capa().
* array.c (rb_ary_unshift_m): ditto.
* array.c (rb_ary_splice): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 15:27:35 +00:00
nobu
938fcd6b70
* io.c (rb_io_ungetbyte, rb_io_ungetc): allows nil to reset EOF
...
flag with ungetting nothing.
* ruby.c (load_file_internal): rests EOF flag to make possible to
load from stdin after reading data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 12:42:39 +00:00
naruse
f0cc645afa
Add test for String#encode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 08:41:47 +00:00
nobu
237c54075a
* io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 06:31:03 +00:00
nobu
c5dea4c69d
* string.c (hash): suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 06:26:51 +00:00
usa
6ff613fc09
* array.c (take_items): to_ary() raises ArgumentError if cannot to
...
convert to Array. [ruby-dev:37797]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 05:43:04 +00:00
nobu
3b817f834a
* parse.y (debug_lines): calls rb_intern() once.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 05:32:08 +00:00
nobu
1a0f593b3c
* ruby.c (load_file_internal): no need to cast.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:59:20 +00:00
nobu
767a9a5ecd
* include/ruby/io.h (FMODE_EOF): EOF flag on TTY.
...
* io.c (io_set_eof): sets EOF flag for TTY.
* io.c (io_seek): clears EOF flag.
* io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798]
* io.c (io_fillbuf, io_fread, io_getpartial): sets EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:57:06 +00:00
nobu
877dca1e27
* include/ruby/io.h (typedef struct rb_io_t):
...
* io.c (flush_before_seek):
* io.c (io_fillbuf):
* io.c (io_fread):
* io.c (io_getpartial):
* ruby.c (load_file_internal):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:56:06 +00:00
svn
8029f3d299
* 2009-01-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 23:27:06 +00:00
ryan
7bcd50555b
Imported minitest 1.3.1 r4532.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 23:26:55 +00:00
akr
bd3cdcf394
* ext/socket/socket.c (socket_s_list_ip_address): new method.
...
(sockaddr_obj): new function.
* ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h,
sys/sockio.h, net/if.h if available.
(addrinfo_new): declared.
* ext/socket/raddrinfo.c (addrinfo_new): exported.
* ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h,
net/if.h and getifaddrs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 11:19:09 +00:00
akr
9ffca4659b
* ext/socket/rubysocket.h (pseudo_AF_FTIP): moved from mkconstants.rb.
...
* ext/socket/mkconstants.rb: prepend header if -H is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 11:06:22 +00:00
naruse
3c13fd9be0
* ext/nkf/nkf-utf8/nkf.c (nkf_buf): use nkf_char.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 08:59:06 +00:00
nobu
11c00acf8e
* cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed
...
with ruby_ to export.
* ext/continuation/continuation.c, ext/fiber/fiber.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 07:17:28 +00:00
nobu
2d03f7274f
* Makefile.in (miniruby): renames and then removes, to get rid of
...
EPERM on cygwin and mingw.
* Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy.
* configure.in (DLDFLAGS): do not export all symbols.
* cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with
Init_.
* win32/mkexports.rb (Exports::Mingw): includes all symbols except for
prefixed with Init_ as well as mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 06:32:36 +00:00
nobu
e77a0b7b24
* string.c (hash): fixed the tail bytes handling in the aligned
...
access case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 04:02:42 +00:00
usa
2ad3120ea6
* ext/nkf/nkf-utf8/nkf.c (nkf_buf_push): maybe a bug.
...
* ext/nkf/nkf-utf8/nkf.c (options): no need to support help option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 00:27:17 +00:00
nobu
cab67c3197
* array.c (take_items), enum.c (enum_zip): tries to convert to
...
array first. [ruby-core:21442]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 21:47:48 +00:00
naruse
13313688b2
* ext/nkf/nkf-utf8/nkf.c: Update nkf to 2.0.9.
...
revert -s meaning as Shift_JIS, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 18:52:42 +00:00
nobu
d66c0cf368
* string.c (hash): fixed typo. [ruby-dev:37791]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 18:42:46 +00:00
svn
108377fc6b
* 2009-01-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 16:16:09 +00:00
akr
6d39bc3189
* ext/socket/mkconstants.rb (SOMAXCONN): defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 16:16:05 +00:00
akr
b1956f058f
* ext/socket/mkconstants.rb: use erb for generating code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 13:32:31 +00:00
nobu
42d9223a2d
* string.c (hash): defaulted to MurmurHash 2.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:32:41 +00:00
nobu
4e6ad7d910
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:28:28 +00:00
nobu
49e685a0af
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION2): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:24:10 +00:00
nobu
c872df9e28
* vm_dump.c (vm_stack_dump_each): used only if debug mode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:22:58 +00:00
nobu
768988f918
* string.c (hash): added MurmurHash 2.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 07:32:42 +00:00
nobu
4c4aef3bbe
* thread.c (rb_thread_execute_interrupts): needs
...
rb_signal_buff_size to be declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 05:32:05 +00:00
ko1
d31e1d4a52
* ruby.c (require_libraries): reset th->parse_in_eval while
...
loading libraries. fixes [ruby-dev:37780]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 04:41:19 +00:00
ko1
9b520ddcec
* vm_eval.c, eval.c (rb_f_block_given_p): move definition of
...
"iterator?" and "block_given?" to make static.
* vm.c (vm_get_ruby_level_caller_cfp): make it static.
* eval_intern.h, vm_insnhelper.c: move decl. of
vm_get_ruby_level_caller_cfp()
from eval_intern.h to vm_insnhelper.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 03:03:09 +00:00
ko1
cf23d0f0f0
* vm.c: add a prefix "rb_" to exposed functions
...
vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(),
vm_stack_to_heap(), vm_make_proc(), vm_invoke_proc(),
vm_get_sourceline(), vm_cref(), vm_localjump_error(),
vm_make_jump_tag_but_local_jump(), vm_jump_tag_but_local_jump().
This changes may affect only core because most of renamed functions
require a pointer of not-exposed struct such as rb_thread_t or NODE.
In short, they are core functions.
* cont.c, eval.c, eval_intern.h, load.c, proc.c, thread.c,
vm_core.h, vm_dump.c, vm_eval.c, vm_exec.c, vm_insnhelper.c:
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 02:38:11 +00:00
nobu
2aa6644acd
* ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),
...
(unixpath, unixaddr): UNIX domain sockets depend on sys/un.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 02:22:57 +00:00
ko1
651f0e48bb
* vm_dump.c: add a prefix "rb_vmdebug_" to
...
vm_stack_dump_raw(), vm_stack_dump_raw_current(),
vm_env_dump_raw(), vm_proc_dump_raw(), vm_stack_dump_th(),
vm_debug_print_register(), vm_thread_dump_regs(),
vm_debug_print_pre(), vm_debug_print_post(),
vm_thread_dump_state().
This change also may affect core (in fact, user of
above functions may be only ko1).
* vm_core.h: ditto.
* vm_exec.h (SDR2): remove duplicate definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 02:09:43 +00:00
nobu
fb4bea8aaf
* ext/socket/raddrinfo.c (addrinfo_ip_port): use AF_INET6 only when
...
defined, as well as addrinfo_ipv6_p().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 02:00:52 +00:00
ko1
7d431933b6
* gc.c (garbage_collect_with_gvl): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 01:44:39 +00:00
usa
f14e2a074a
* ext/socket/depend: workaround for nmake. files in depend without
...
paths should converted by RULE_SUBST, but mkmf.rb cannot recognize
macros currently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 01:35:57 +00:00
ko1
c4c3f238d7
* iseq.c:
...
rename ruby_iseq_disasm_insn() -> rb_iseq_disasm_insn().
rename ruby_iseq_disasm() -> rb_iseq_disasm().
* compile.c:
rename ruby_iseq_compile() -> rb_iseq_compile_node().
rename ruby_iseq_translate_threaded_code() ->
rb_iseq_translate_threaded_code().
rename ruby_insns_name_array() -> rb_insns_name_array().
rename ruby_iseq_build_from_ary() -> rb_iseq_build_from_ary().
* iseq.c, compile.c: remove ruby_insn_make_insn_table() and make
static function insn_make_insn_table().
* iseq.h, ruby.c, vm.c, vm_core.h, vm_eval.c, vm_dump.c,
blockinlining.c: ditto.
Rename strange "ruby_" prefix to "rb_" prefix.
This changes may affect only core because renamed functions
require a pointer of rb_iseq_t which is not exposed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 01:06:56 +00:00
usa
80980a98b1
* ext/socket/raddrinfo.c (addrinfo_mdump, addrinfo_mload): support
...
UNIX socket only on platforms which support it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 00:23:48 +00:00
ko1
4316e4d99b
* eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.c
...
to vm_eval.c because vm_collect_local_variables_in_heap() should
be static function.
* vm.c (vm_collect_local_variables_in_heap): make it static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 00:13:44 +00:00
nobu
b96f428e48
* iseq.c (rb_iseq_load): renamed from ruby_iseq_load, since it is
...
for C extensions or the ruby core. [ruby-core:21407]
Index: compile.c
===================================================================
--- compile.c (revision 21649)
+++ compile.c (working copy)
@@ -5078,5 +5078,5 @@ iseq_build_exception(rb_iseq_t *iseq, st
}
else {
- eiseqval = ruby_iseq_load(ptr[1], iseq->self, Qnil);
+ eiseqval = rb_iseq_load(ptr[1], iseq->self, Qnil);
}
@@ -5162,5 +5162,5 @@ iseq_build_body(rb_iseq_t *iseq, LINK_AN
if (op != Qnil) {
if (TYPE(op) == T_ARRAY) {
- argv[j] = ruby_iseq_load(op, iseq->self, Qnil);
+ argv[j] = rb_iseq_load(op, iseq->self, Qnil);
}
else if (CLASS_OF(op) == rb_cISeq) {
Index: iseq.c
===================================================================
--- iseq.c (revision 21649)
+++ iseq.c (working copy)
@@ -448,5 +448,5 @@ iseq_s_load(int argc, VALUE *argv, VALUE
VALUE
-ruby_iseq_load(VALUE data, VALUE parent, VALUE opt)
+rb_iseq_load(VALUE data, VALUE parent, VALUE opt)
{
return iseq_load(rb_cISeq, data, parent, opt);
Index: iseq.h
===================================================================
--- iseq.h (revision 21649)
+++ iseq.h (working copy)
@@ -21,5 +21,5 @@ VALUE ruby_iseq_build_from_ary(rb_iseq_t
/* iseq.c */
-VALUE ruby_iseq_load(VALUE data, VALUE parent, VALUE opt);
+VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
struct st_table *ruby_insn_make_insn_table(void);
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-18 19:05:15 +00:00
naruse
69ee4246e5
* transcode.c (str_transcode0): fix: :xml option doesn't
...
work on str.encode([options]) form without default_internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-18 18:32:24 +00:00
akr
db881044bc
* ext/socket/raddrinfo.c (addrinfo_inspect_sockaddr): new
...
method AddrInfo#inspect_sockaddr.
(inspect_sockaddr): extracted from addrinfo_inspect.
(addrinfo_inspect): use inspect_sockaddr.
(Init_addrinfo): define the new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-18 08:03:24 +00:00