summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-01-19* ext/socket/raddrinfo.c (addrinfo_ip_port): use AF_INET6 only whennobu
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* gc.c (garbage_collect_with_gvl): suppress warnings.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 * ext/socket/depend: workaround for nmake. files in depend withoutusa
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* iseq.c:ko1
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 * ext/socket/raddrinfo.c (addrinfo_mdump, addrinfo_mload): supportusa
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* eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.cko1
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-18* iseq.c (rb_iseq_load): renamed from ruby_iseq_load, since it isnobu
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* transcode.c (str_transcode0): fix: :xml option doesn'tnaruse
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* ext/socket/raddrinfo.c (addrinfo_inspect_sockaddr): newakr
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* ext/socket/raddrinfo.c (addrinfo_ip_address): new methodakr
AddrInfo#ip_address. (addrinfo_ip_port): new method AddrInfo#ip_port. (Init_addrinfo): define the methods above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-18* ext/socket/unixsocket.c: redandant #ifdef removed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17Fixed LocalJumpErrorryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/raddrinfo.c (addrinfo_mdump): don't use symbol.akr
(addrinfo_mload): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/raddrinfo.c (addrinfo_mdump): new method.akr
(addrinfo_mload): new method. (Init_addrinfo): define the method above. * ext/socket/constants.c (constant_arg): str_to_int's first argument constified. * ext/socket/mkconstants.rb (gen_name_to_int_decl): generated function's first argument constified. (gen_name_to_int_func_in_guard): ditto. (ipproto_to_int): generated. * ext/socket/rubysocket.h (IS_IP_FAMILY): moved from raddrinfo.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17updated.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/socket.c (sock_s_getnameinfo): accept AddrInfo object.akr
* ext/socket/raddrinfo.c (rb_check_sockaddr_string_type): defined. * ext/socket/rubysocket.h (rb_check_sockaddr_string_type): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17fix typos.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* 2009-01-18svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17rdoc update.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17set property.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/lib/socket.rb: new file.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* configure.in (VCSUP): fixed the cases for git-svn or git.yugui
* win32/Makefile.sub (VCSUP): ditto. * Makefile.in (up): `cd' is necessary for git and git-svn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17eol-stylenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* configure.in (darwin): get rid of strange settings issue ofnobu
apple gcc port, which searches /usr/local/include always but /usr/local/lib not. * ext/readline/readline.c (Init_readline): suppress warnings with libedit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/mkconstants.rb: generate a header file for generatedakr
functions. * ext/socket/rubysocket.h: include constdefs.h. don't declare generated functions. * ext/socket/constants.c: include constdefs.c instead of constants.h. * ext/socket/depend: dependency updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17extract TestBasicSocket from test_socket.rb.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.yugui
[ruby-core:21383]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/raddrinfo.c (make_inspectname): add a res argument toakr
suppress numeric inspectname. (init_addrinfo_getaddrinfo): call make_inspectname here. (addrinfo_firstonly_new): follow make_inspectname change. (addrinfo_list_new): ditto. (addrinfo_initialize): follow init_addrinfo_getaddrinfo change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket/mkconstants.rb: don't cause an error for duplicate names.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17rdoc update.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* ext/socket: split files for each class.akr
* ext/socket/rubysocket.h: common header. * ext/socket/basicsocket.c: new file for BasicSocket. * ext/socket/ipsocket.c: new file for IPSocket. * ext/socket/tcpsocket.c: new file for TCPSocket. * ext/socket/tcpserver.c: new file for TCPServer. * ext/socket/sockssocket.c: new file for SOCKSSocket. * ext/socket/udpsocket.c: new file for UDPSocket. * ext/socket/unixsocket.c: new file for UNIXSocket. * ext/socket/unixserver.c: new file for UNIXServer. * ext/socket/socket.c: now for Socket. * ext/socket/raddrinfo.c: new file for AddrInfo and name resolution. * ext/socket/constants.c: new file for constants. * ext/socket/init.c: new file for utilities. * ext/socket/mkconstants.rb: export *_to_int. * ext/socket/extconf.rb: add new object files. * ext/socket/depend: add dependencies for new files. * ext/.document: add new files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* cont.c (cont_restore_0): padding size doesn't need to be largenobu
if alloca is used. suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17* vm_dump.c (vm_stack_dump_each): initialized at declarations.nobu
* vm_dump.c (rb_vm_bugreport): constified to suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* ext/socket/socket.c: move addrinfo code.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16 * win32/Makefile.sub (up): tell nmake that need to run command viausa
shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* tool/make-snapshot (package): includes all rules and expandnobu
configured values from the environment to create *.inc, sets RM for ripper.c, and needs chdir if absolute path is given with -exported option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* include/ruby/ruby.h (VALUE): use unsigned long or long longnobu
instead of uintptr_t, since many %lx and so on are still used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* include/ruby/ruby.h (VALUE): use unsigned long or long longnobu
instead of uintptr_t, since many %lx and so on are still used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* configure.in (Makefile): set VCS and VCSUP to support `git svn'nobu
and git. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* configure.in (Makefile): set VCS and VCSUP.nobu
* Makefile.in, win32/Makefile.sub (up): split from common.mk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16Commit miss at r21521, poited out by Yugui.duerst
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* thread.c (thread_start_func_2): call ruby_cleanup() if thread isko1
main thread. [ruby-dev:37624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16 * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa
miniprelude.c, newline.c): if dependencies is newer than targets or targets don't exist, try to create targets with BASERUBY. no need to detect errors there because the absence of BASERUBY is not abnormal. after the try, if the targets still don't exist, copy them from $(srcdir). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16 * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.usa
if not, cause compile error in using PRI?VALUE. * win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and SIZEOF_UINTPTR_T for SIZEOF_VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* symbian/pre-build (COMSPEC): should not overridden.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* parse.y (rb_parse_in_main): fixed typo.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16* configure.in (RUBY_REPLACE_TYPE): does not define rb_ prefixednobu
name if no default type is given. * configure.in (RUBY_DEFINT): checks size. * include/ruby/ruby.h (VALUE): use uintptr_t if available. * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): assumes usable if PRIdPTR is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15* thread.c (rb_thread_execute_interrupts): if signal is alreadymame
buffered, main thread should wait until timer thread delivers it. * thread.c (timer_thread_function): should defer delivery of a signal if main thread does not yet trap a previous one. [ruby-dev:37676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15sorry, revert a mistakekazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15fix typos and cleanup some spaceskazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e