summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * include/ruby/defines.h (RUBY_ALIAS_FUNCTION2): added.nobu2009-01-193-8/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (vm_stack_dump_each): used only if debug mode.nobu2009-01-191-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): added MurmurHash 2.0.nobu2009-01-192-54/+97
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_execute_interrupts): needsnobu2009-01-193-2/+6
| | | | | | | rb_signal_buff_size to be declared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (require_libraries): reset th->parse_in_eval whileko12009-01-192-0/+9
| | | | | | | | loading libraries. fixes [ruby-dev:37780] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c, eval.c (rb_f_block_given_p): move definition ofko12009-01-196-44/+55
| | | | | | | | | | | | "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: http://svn.ruby-lang.org/repos/ruby/trunk@21660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: add a prefix "rb_" to exposed functionsko12009-01-1914-77/+92
| | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),nobu2009-01-192-1/+8
| | | | | | | (unixpath, unixaddr): UNIX domain sockets depend on sys/un.h. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c: add a prefix "rb_vmdebug_" toko12009-01-194-23/+35
| | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_ip_port): use AF_INET6 only whennobu2009-01-192-2/+15
| | | | | | | defined, as well as addrinfo_ipv6_p(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (garbage_collect_with_gvl): suppress warnings.ko12009-01-192-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/depend: workaround for nmake. files in depend withoutusa2009-01-192-2/+8
| | | | | | | | | paths should converted by RULE_SUBST, but mkmf.rb cannot recognize macros currently. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c:ko12009-01-1910-47/+69
| | | | | | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_mdump, addrinfo_mload): supportusa2009-01-193-6/+18
| | | | | | | | UNIX socket only on platforms which support it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.cko12009-01-194-62/+68
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_load): renamed from ruby_iseq_load, since it isnobu2009-01-184-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for C extensions or the ruby core. [ruby-core:21407] ?\012 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: http://svn.ruby-lang.org/repos/ruby/trunk@21650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode0): fix: :xml option doesn'tnaruse2009-01-183-3/+9
| | | | | | work on str.encode([options]) form without default_internal. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_inspect_sockaddr): newakr2009-01-183-16/+67
| | | | | | | | | | method AddrInfo#inspect_sockaddr. (inspect_sockaddr): extracted from addrinfo_inspect. (addrinfo_inspect): use inspect_sockaddr. (Init_addrinfo): define the new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_ip_address): new methodakr2009-01-183-0/+77
| | | | | | | | | AddrInfo#ip_address. (addrinfo_ip_port): new method AddrInfo#ip_port. (Init_addrinfo): define the methods above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/unixsocket.c: redandant #ifdef removed.akr2009-01-182-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed LocalJumpErrorryan2009-01-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_mdump): don't use symbol.akr2009-01-172-21/+17
| | | | | | | (addrinfo_mload): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_mdump): new method.akr2009-01-176-10/+253
| | | | | | | | | | | | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@21643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated.akr2009-01-171-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_getnameinfo): accept AddrInfo object.akr2009-01-175-1/+23
| | | | | | | | | | * ext/socket/raddrinfo.c (rb_check_sockaddr_string_type): defined. * ext/socket/rubysocket.h (rb_check_sockaddr_string_type): declared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2009-01-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-01-18svn2009-01-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-01-171-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* set property.akr2009-01-170-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb: new file.akr2009-01-174-0/+379
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (VCSUP): fixed the cases for git-svn or git.yugui2009-01-174-5/+13
| | | | | | | | * win32/Makefile.sub (VCSUP): ditto. * Makefile.in (up): `cd' is necessary for git and git-svn. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eol-stylenobu2009-01-170-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (darwin): get rid of strange settings issue ofnobu2009-01-172-2/+10
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: generate a header file for generatedakr2009-01-175-28/+74
| | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extract TestBasicSocket from test_socket.rb.akr2009-01-172-83/+88
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.yugui2009-01-172-0/+17
| | | | | | [ruby-core:21383]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (make_inspectname): add a res argument toakr2009-01-172-5/+34
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: don't cause an error for duplicate names.akr2009-01-172-1/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-01-171-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket: split files for each class.akr2009-01-1718-4207/+4579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@21619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_restore_0): padding size doesn't need to be largenobu2009-01-172-4/+17
| | | | | | | if alloca is used. suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (vm_stack_dump_each): initialized at declarations.nobu2009-01-173-9/+10
| | | | | | | * vm_dump.c (rb_vm_bugreport): constified to suppress a warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c: move addrinfo code.akr2009-01-162-1026/+1034
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (up): tell nmake that need to run command viausa2009-01-162-1/+6
| | | | | | | | shell. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (package): includes all rules and expandnobu2009-01-162-2/+14
| | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (VALUE): use unsigned long or long longnobu2009-01-161-3/+6
| | | | | | | instead of uintptr_t, since many %lx and so on are still used. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (VALUE): use unsigned long or long longnobu2009-01-161-2/+5
| | | | | | | instead of uintptr_t, since many %lx and so on are still used. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (Makefile): set VCS and VCSUP to support `git svn'nobu2009-01-161-1/+2
| | | | | | | and git. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (Makefile): set VCS and VCSUP.nobu2009-01-165-6/+40
| | | | | | | * Makefile.in, win32/Makefile.sub (up): split from common.mk. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit miss at r21521, poited out by Yugui.duerst2009-01-161-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e