summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * configure.in (rb_cv_gcc_function_alias): checks alias attribute.nobu2008-08-133-16/+31
| | | | | | | * string.c (alias_func): replaced with RUBY_ALIAS_FUNCTION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* svn:eol-sytlenobu2008-08-131-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (parse.h): fake rule.nobu2008-08-132-24/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.shugo2008-08-132-1/+7
| | | | | | | fixed [ruby-core:18264]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (alias_func): changed to 'weak, alias' from 'alias' forkouji2008-08-132-2/+7
| | | | | | | Mac OSX. (closes #429) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: count only freed object as freelist size.ko12008-08-132-7/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (marshal_load): set arg.untrust properly.shugo2008-08-132-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ignore newline.cknu2008-08-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_inspect): new method.akr2008-08-132-0/+22
| | | | | | | + git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_set_default_proc): add new method. a patch frommatz2008-08-132-0/+38
| | | | | | Giuseppe Bilotta. #419 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable0): several local variablesakr2008-08-132-9/+11
| | | | | | | removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (caller_setup_args): should ensure if the valuematz2008-08-132-1/+6
| | | | | | from to_proc is a real Proc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: regint.h no longer includes vm_core.h.knu2008-08-132-32/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): add fields: writebuf_off,akr2008-08-133-35/+106
| | | | | | | | | | | | | | writebuf_len and writebuf. (TRANSCODING_WRITEBUF): new macro. * transcode.c (transcode_restartable0): output until output buffer is really full. (rb_transcoding_open_by_transcoder): initialize writebuf_len, writebuf_off and writebuf. (rb_transcoding_close): finalize writebuf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_check_ints): added. please note thatko12008-08-134-2/+25
| | | | | | | | | | | this function may cause ruby's thread switching. * include/ruby/intern.h: ditto. * regint.h: use rb_thread_check_ints() instead of RUBY_CHECK_INTS() directly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb, lib/set.rb (TC_Set#test_each),knu2008-08-138-9/+20
| | | | | | | | | | | | | test/readline/test_readline_history.rb (Readline#test_each__enumerator), test/ruby/test_array.rb (TestArray#test_collect), test/ruby/test_enumerator.rb (TestEnumerator#test_initialize): Enumerable::Enumerator is now called Enumerator. * lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use enum_for instead of hardcoding Enumerable::Enumerator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c, vm_core.h: add manual priority supportko12008-08-136-2/+59
| | | | | | | | | | | using time slice. if you enable USE_NATIVE_THREAD_PRIORITY macro, this mechanism is ignored. [ruby-dev:33124] * thread_pthread.c, thread_win32.c: ditto. * test/ruby/test_thread.rb: fix test parameter. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add rdoc.akr2008-08-131-0/+88
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_untrusted): new method Object#untrusted?.shugo2008-08-1323-93/+369
| | | | | | | | | | | | | | | (rb_obj_untrust): new method Object#untrust. (rb_obj_trust): new method Object#trust. * array.c, debug.c, time.c, include/ruby/ruby.h, re.c, variable.c, string.c, io.c, dir.c, vm_method.c, struct.c, class.c, hash.c, ruby.c, marshal.c: fixes for Object#untrusted?. * test/ruby/test_module.rb, test/ruby/test_array.rb, test/ruby/test_object.rb, test/ruby/test_string.rb, test/ruby/test_marshal.rb, test/ruby/test_hash.rb: added tests for Object#untrusted?. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb: follow EncodingCompatibilityError.naruse2008-08-134-26/+34
| | | | | | | | * test/ruby/test_mixed_unicode_escapes.rb: ditto. * test/ruby/enc/test_utf16.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_cmp): retry with right hand operand if its not amatz2008-08-132-1/+16
| | | | | | time object. [ruby-dev:35011] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: Apply a temporary fix to fix build on OS X. A realknu2008-08-132-1/+6
| | | | | | | fix will follow later. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator toknu2008-08-132-7/+12
| | | | | | | just Enumerator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE)knu2008-08-132-2/+7
| | | | | | | | requires $(RBCONFIG). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_init): make flags argument optional.akr2008-08-133-14/+31
| | | | | | | (econv_primitive_convert): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add parse.h.knu2008-08-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (realclean-local): Remove parse.h as well.knu2008-08-132-35/+82
| | | | | | | | | * common.mk: Add missing dependencies regarding vm_core.h, id.h, parse.c (parse.h), etc.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix constant name.akr2008-08-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix variable name.akr2008-08-131-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/newline.trans (rb_crlf_newline): new transcoder.akr2008-08-134-2/+72
| | | | | | | | | | | | | | (rb_cr_newline): new transcoder. * transcode.c (trans_open_i): one more exra room for input newline converter. (rb_trans_open): crlf newline and cr newline implemented. (Init_transcode): Encoding::Converter::CRLF_NEWLINE and Encoding::Converter::LF_NEWLINE defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/newline.trans: new file.akr2008-08-135-23/+137
| | | | | | | | | | | | | | | | | | | | * transcode_data.h (rb_trans_t): add last_tc field. * transcode.c (UNIVERSAL_NEWLINE): defined. (CRLF_NEWLINE): defined. (CR_NEWLINE): defined. (rb_trans_open_by_transcoder_entries): initialize last_tc. (trans_open_i): allocate one more room for newline converter. (rb_trans_open): universal newline implemented. (more_output_buffer): take max_output argument instead ts. (output_replacement_character): take tc argument instead of ts. (transcode_loop): use last_tc field. (econv_init): add flags argument for rb_trans_open. (Init_transcode): Encoding::Converter::UNIVERSAL_NEWLINE defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (parse.c): generates parse.h together.nobu2008-08-134-40/+35
| | | | | | | * id.c, id.h: use constants for parser tokens. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: rewind cfp to show proper backtrace.ko12008-08-132-42/+61
| | | | | | | | [ruby-dev:35820] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: fix for clean up.nobu2008-08-134-10/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: Declare rb_iseq_clone, which is used in class.c.knu2008-08-132-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_search_path): return the length of converterakr2008-08-132-59/+108
| | | | | | | | | | | | | | | | | path. (load_transcoder_entry): renamed from load_transcoder. (load_transcoder): new function for loding transcoder by encoding names. (rb_transcoding_open_by_transcoder): extracted from rb_transcoding_open. (rb_transcoding_open): use load_transcoder and rb_transcoding_open_by_transcoder. (rb_trans_open_by_transcoder_entries): new function. (trans_open_i): construct entries array. (rb_trans_open): use rb_trans_open_by_transcoder_entries. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: try to find exported directory.nobu2008-08-132-3/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/NEWS: Mention the Readline.vi_editing_mode?,kouji2008-08-132-0/+12
| | | | | | | | Readline.emacs_editing_mode?, Readline::HISTORY[] and Readline::HISTORY.clear change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_primitive_convert): add output_size argument.akr2008-08-123-11/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_trans_conv): report last transcode_obuf_full.akr2008-08-123-31/+69
| | | | | | | (econv_max_output): new method Encoding::Converter#max_output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (rb_eEncCompatError): add Exception.naruse2008-08-126-44/+63
| | | | | | | | | | | | | | | | * include/ruby/ruby.h: ditto. * encoding.c (rb_enc_check): use rb_eEncCompatError. * string.c (rb_enc_cr_str_buf_cat): ditto. * string.c (rb_str_sub_bang): ditto. * string.c (rb_str_hex): ditto. * string.c (rb_str_oct): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode): fix error message.naruse2008-08-123-5/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_cEncodingConverter): new class Encoding::Converter.akr2008-08-123-0/+124
| | | | | | | | | | | | (econv_free): new function. (econv_s_allocate): ditto. (econv_init): ditto. (check_econv): ditto. (econv_primitive_convert): new method. (Init_transcode): define Encoding::Converter. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.akr2008-08-122-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: fix for enc.mk.nobu2008-08-122-28/+65
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_drop_bytes): new function to drop first bytes.nobu2008-08-123-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_drop): new function to drop first bytes.nobu2008-08-123-0/+39
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: more descriptive aliases of rb_str_new[2-5].nobu2008-08-121-3/+2
| | | | | | | [ruby-dev:35615] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c, vm_insnhelper.c (vm_define_method): moveko12008-08-123-40/+45
| | | | | | | | function place. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,nobu2008-08-123-30/+76
| | | | | | | | rb_usascii_str_new2): use with-length versions with strlen to optimize strlen, if optimized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e