aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ruby.c (process_options): decrement parse_in_eval to recognizeko12009-01-154-3/+21
| | | | | | | | | | | | parsing main or normal eval script. * compile.c (rb_parse_in_main): return 1 if parsing main script. (if parse_in_eval is negative value, it means main script) * parse.y (yycompile0): check rb_parse_in_main() to accumulate script text. Bug #848 [ruby-core:20450] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb: as wanabe-san pointed out,ko12009-01-152-3/+9
| | | | | | | | | set_trace_func should be completely final task in debug.rb. Bug #847 [ruby-core:20449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):ko12009-01-156-2/+42
| | | | | | | | | | | | added. * vm_insnhelper.h: ditto. * variable.c (rb_const_get_0), insns.def: Constants should not be cached if const_missing is called. [ruby-core:21059] [Bug #967] * bootstraptest/test_class.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: btest-ruby should receive option with OPTS.ko12009-01-152-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa2009-01-152-6/+14
| | | | | | | | | | | miniprelude.c, newline.c): shoudn't copy when $(srcdir) != ".", too. (this is a workaround. we need more strict check.) * win32/Makefile.sub ($(INSNS)): shound't remove BASERUBY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_with_gvl): suppress warnings.ko12009-01-153-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add rdoc.naruse2009-01-151-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-01-151-10/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb: RUBY_REVISION must be an integer.akr2009-01-152-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_set_default_encoding): should not treat US-ASCIImatz2009-01-152-6/+9
| | | | | | | special here. a patch from Yui NARUSE in [ruby-dev:37769]. [ruby-dev:37699] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (command): moved return/break/next from command_call formatz2009-01-152-24/+30
| | | | | | | | better error message. * parse.y (call_args): void value check added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * LEGAL: Added information for missing/langinfo.cduerst2009-01-151-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt): explicit error for "Object::Far += foo 1" justmatz2009-01-152-0/+10
| | | | | | as "Object::Far += 1". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_locale_charmap): fixed typo.nobu2009-01-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMPILERFLAG): for enc/trans/gb18030.c.usa2009-01-152-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub (MISSING): added langinfo on mingwnobu2009-01-155-6/+20
| | | | | | | | | | | | and mswin. * encoding.c (rb_locale_charmap): use environments on mingw and mswin. * missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese environment uses Windows-31J derived from Shift_JIS, not EUC-JP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,usa2009-01-152-6/+11
| | | | | | | | miniprelude.c, newline.c): copy only when $(srcdir) != pwd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_open): revert a part of previous commit. it may be ausa2009-01-152-6/+8
| | | | | | | | mistake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-157-0/+2228
| | | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-157-9/+37
| | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/gb18030.trans: get rid of a 1.9 feature for crossnobu2009-01-144-8/+12
| | | | | | | compile. [ruby-core:21345] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_locale_charmap): fallback to codepage if nonobu2009-01-143-28/+58
| | | | | | | | | | locale is found. [ruby-core:21110] * missing/langinfo.c (nl_langinfo_codeset): returns NULL if no locale is found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (negative_size_allocation_error_with_gvl): abolish a warning.akr2009-01-143-4/+10
| | | | | | | | | | (negative_size_allocation_error): ditto. * ext/openssl/ossl.c (ossl_raise): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/gb18030.trans, gb18030-tbl.rb:duerst2009-01-147-6/+63613
| | | | | | | | | | | | | | | new Chinese GB18030 transcoding (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) * transcode_data.h, transcode.c, tool/transcode_tblgen.rb: added support for GB18030-specific 4-byte sequences (with Yoshihiro Kambayashi) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: check ncursesw earlier than ncurses tomatz2009-01-142-1/+7
| | | | | | | support UTF-8 strings. non UTF-8 strings should be converted explicitly. [ruby-core:21094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: fix prototype declare of register_stack_extendtakano322009-01-142-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_aspawn): should not escape with carretnobu2009-01-142-2/+8
| | | | | | | unless using cmd.exe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb (gai_strerror): checks if available and ifnobu2009-01-143-2/+26
| | | | | | | | | | returns const pointer. * ext/socket/getaddrinfo.c (gai_strerror): defines only if non available. [ruby-core:21328] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.nobu2009-01-142-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (appendline): reformed.nobu2009-01-142-15/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_pipe): reduced nest of rb_ensure of main block.nobu2009-01-143-5/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/addrinfo.h (AI_NUMERICSERV): defined.akr2009-01-133-1/+12
| | | | | | | | | | (AI_MASK): add AI_NUMERICSERV. * ext/socket/getaddrinfo.c (getaddrinfo): support AI_NUMERICSERV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.yugui2009-01-133-14/+34
| | | | | | | | | Patch by Kornelius Kalnbach. [ruby-core:20992]. * test/ostruct/test_ostruct.rb: test for inspect. Patch by Kornelius Kalnbach. [ruby-core:20992]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_listusa2009-01-132-0/+13
| | | | | | | | when copying pipe fptr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (rb_getaddrinfo): use getaddrinfo with GVL ifakr2009-01-133-0/+23
| | | | | | | | | | | | | getaddrinfo.c/getnameinfo.c is used. They are not thread safe because gethostbyname/gethostbyaddr is used. (rb_getnameinfo): ditto. * extconf.rb: define GETADDRINFO_EMU if getaddrinfo.c/getnameinfo.c is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_not_match): rdoc.yugui2009-01-132-2/+8
| | | | | | Patch by Kornelius Kalnbach. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_close_read): call rb_io_fptr_cleanup() instead ofusa2009-01-132-2/+8
| | | | | | | | | fptr_finalize() because the fptr has special finalizser if it is a pipe. [ruby-dev:37757] (3) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686]usa2009-01-132-0/+11
| | | | | | | | (also see [ruby-dev:37721]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/{encdb,transdb}.h.tmpl: moved enc/make_encdb.rb andnobu2009-01-133-20/+18
| | | | | | | | | enc/trans/make_transdb.rb using tool/generic_erb.rb. * common.mk (encdb.h, transdb.h): generates from avobe template. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/make_transdb.rb (converters): should not depend on thenobu2009-01-132-1/+10
| | | | | | | hash order for cross compile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add dummy definition for fake rdoc.naruse2009-01-131-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,usa2009-01-135-39/+139
| | | | | | | | | | | | | | | rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset, rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type, functions, and macros for Windows. * win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand fd_array if needed. [ruby-core:19946] * win32/win32.c (copy_fd): new funcion for rb_w32_select(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (get_revisions): fixes problem withyugui2009-01-132-3/+12
| | | | | | | svn on cygwin. [ruby-dev:37702]. Patch by Kouhei Sutou. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb: IRB did not prompt for MSwin32.yugui2009-01-132-2/+8
| | | | | | | [ruby-dev:37686]. Patch by arton <artonx AT yahoo.co.jp>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.husa2009-01-133-0/+7
| | | | | | | | on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit miss in previous commit.duerst2009-01-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/socket/socket.c: removed warning about unused variable 'rai'.duerst2009-01-131-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.usa2009-01-122-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: use headers instead of "netdb.h" in checkingusa2009-01-123-3/+13
| | | | | | | | | | | | | getnameinfo() and getaddrinfo() because Windows doesn't have it. see [ruby-dev:37757]. * ext/socket/sockport.h (SA_LEN): use sockaddr_in6 when defined AF_INET6 if INET6 is not defined. winsock2's getaddrinfo() returns sockaddr_in6 if ipv6 is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* describe Encoding.find("locale") in rdoc of Encoding.locale_charmap.akr2009-01-121-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e