aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in, common.mk, Makefile.in: don't generateakr2007-11-104-15/+9
| | | | | | | libminiruby-static.a. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use 1.9 feature.akr2007-11-101-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix file list.akr2007-11-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in: generate libminiruby-static.a akr2007-11-104-15/+24
| | | | | | | which contains prelude.o for miniruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (EXPLOBJS): create new variable for ext_prelude.o.akr2007-11-103-9/+16
| | | | | | | | * Makefile.in(h: use EXPLOBJS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* format change.akr2007-11-101-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb: new file for gem libraries. currently empty.akr2007-11-107-14/+103
| | | | | | | | | | | | | | | | | * common.mk: generate ext_prelude.c by prelude.rb and gem_prelude.rb. ruby (not miniruby) is linked with ext_prelude.o instead of prelude.o. * inits.c (rb_call_inits): don't call Init_prelude. * ruby.c: support --disable-gems option. (ruby_init_gems): new function to define Gem::Enable and invoke Init_prelude. (process_options): call ruby_init_gems just after ruby_init_loadpath. * tool/compile_prelude.rb: support multiple files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (call_trace_proc): don't call ID2SYM() for ID_ALLOCATORshugo2007-11-102-1/+16
| | | | | | | to avoid SEGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {lib,test}/rubygems: set property.nobu2007-11-101-183/+183
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RubyGems trunk revision 1493.drbrain2007-11-10144-0/+21330
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't override Enumerable#inject for 1.9drbrain2007-11-102-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: use ASCII encoding for string literals that aredavidflanagan2007-11-102-0/+19
| | | | | | | | 7-bit clean, fixing regression from my previous patch git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32}/Makefile.sub: vendor_ruby support.nobu2007-11-104-3/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_nextc): added single line read forward buffer.nobu2007-11-092-15/+26
| | | | | | | * parse.y (parser_yylex): adjust line number for fluent interface. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.nobu2007-11-093-3/+10
| | | | | | | * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (eval): should be volatile value for GC.ko12007-11-092-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (locale_encoding): guestimate encoding from environmentnobu2007-11-092-4/+42
| | | | | | | | | variables. [ruby-core:13315] * ruby.c (process_options): set primary encoding from environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_cvar_set): cvar assignment obey same rule to cvarmatz2007-11-092-35/+30
| | | | | | reference. [ruby-dev:32192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_each_byte): should update rbuf_off and rbuf_len formatz2007-11-092-2/+7
| | | | | | each iteration. [ruby-dev:31659][ruby-dev:32192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_check_encoding, rb_set_primary_encoding): ENCODINGnobu2007-11-092-4/+7
| | | | | | | is no longer in FL_USERS flags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_squeeze_bang): initialize squeezing table if nonobu2007-11-092-1/+7
| | | | | | | arguments given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (each_with_index_i): use rb_yield_values() formatz2007-11-092-1/+7
| | | | | | | compatibility with Enumerator#with_index(). a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32195] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (TestIterator::IterTest::each):matz2007-11-092-6/+11
| | | | | | | | | #each_pair is now alias to #each. [ruby-dev:32192] * test/ruby/test_iterator.rb (TestIterator::test_assoc_yield): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_basicinstructions.rb: updated for new classmatz2007-11-094-14/+30
| | | | | | | | | | | | | | | | | behavior. [ruby-dev:32192] * encoding.c (enc_name): Encoding should not rely on ENCODING in the FL_USERS flags. * encoding.c (rb_enc_from_encoding): do not call rb_enc_associate for encoding itself. * encoding.c (enc_register_at): ditto. * marshal.c (r_ivar): do not set real instance variable for encoding data associated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (loaded_feature_path): check with type of given feature.nobu2007-11-092-8/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (send_internal): use self in the previous frame to check fornobu2007-11-093-5/+18
| | | | | | | | | protected methods. [ruby-core:13254] * insnhelper.ci (vm_call_method): send! method has gone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): should be SPECIAL_CONST_P() instead ofko12007-11-092-1/+6
| | | | | | | | IMMEDIATE_P(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_invoke_method): check if invoked in function style.nobu2007-11-094-7/+40
| | | | | | | | | | | | | [ruby-core:13245] * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): stores and returns VM calling flags. * vm.c (rb_vm_cfunc_funcall_p): returns if the current method is invoked in function style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: add rb_context_t#type.ko12007-11-092-22/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0): fix breaking environ bugs.ko12007-11-092-6/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c: update MT URL.[ruby-core:13305].matz2007-11-083-6/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: improve docs for Object.tapdavidflanagan2007-11-082-9/+21
| | | | | | | * ChangeLog: fix bogus dates on my previous entries git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: fix segfault with \x escapes in regexpsdavidflanagan2007-11-082-58/+4
| | | | | | | delete unused #if 0 code regions from previous patch git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_read_escape): remove C99/gcc-ism.usa2007-11-083-6/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: patch, based on Nobu's, work to support \u escapesdavidflanagan2007-11-074-81/+602
| | | | | | | | | | also modifications for better coderange detection * test/ruby/test_unicode_escapes.rb: test cases * test/ruby/test_mixed_unicode_escapes.rb: mixed encoding test cases git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): commented out broken code that preventeddavidflanagan2007-11-072-0/+21
| | | | | | | | | correct interning of multi-byte symbols. Without this patch :x==:x is false when x is a multi-byte character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_setup_table, tr_trans): fix test failures in ↵davidflanagan2007-11-072-19/+25
| | | | | | test/ruby/test_string.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_each_with_index): make different arrays at eachnobu2007-11-072-13/+11
| | | | | | | iteration. [ruby-dev:32181] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: fix typo in invoke_method documentationdavidflanagan2007-11-062-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_product): core dumped with non array arguments.matz2007-11-062-1/+6
| | | | | | a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_each_index): should return meaningful value.matz2007-11-062-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x formatz2007-11-063-5/+11
| | | | | | | nkf conversion. a patch from <moonwolf AT moonwolf.com>. [ruby-dev:32183] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (loaded_feature_path): need to expand relative paths.nobu2007-11-062-7/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (rb_feature_p): check if the feature is loading withnobu2007-11-064-34/+103
| | | | | | | | | | | | | load path. [ruby-dev:31932] * eval_load.c (load_lock): check the result of barrier waiting. * thread.c (rb_barrier_wait): check if owned by the current thread. * thread.c (rb_barrier_release): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_eval): move #send to Kernel module from BasicObject.matz2007-11-052-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_send): allow send/__send__ to call methods of allmatz2007-11-0428-99/+90
| | | | | | | | | | visibility again. we no longer provide __send, __send!. * eval.c (rb_invoke_method): new method to honor private visibility. if it's invoked in a function call style, it calls private methods as well (previous 1.9 send behavior). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::summarize): fix for long formnobu2007-11-042-1/+7
| | | | | | | | option with very long argument. a patch from Kobayashi Noritada <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (call_args): remove "parenthesize argument(s) for futurematz2007-11-043-8/+14
| | | | | | | | version" warning. when I added this warning, I had a plan to reimplement the parser that is simpler than the current one. since we abandoned the plan, warning no longer required. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix ↵aamine2007-11-042-0/+7
| | | | | | 500 error on some corrupted HTTP servers. [ruby-core:13135] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: vendor_ruby support.usa2007-11-044-4/+14
| | | | | | | | * configure.in (RUBY_LIB): duplicated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e