summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * gc.c (getrusage_time): Returned effective value on Windows.kouji2008-08-122-0/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_trans_open): free ts before raise.akr2008-08-122-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignorematz2008-08-122-1/+6
| | | | | | <=> comparison. [ruby-dev:35732] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/make_transdb.rb: *.erb.c is not used anymore.akr2008-08-122-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_trans_elem_t): new field: from and to.akr2008-08-123-14/+33
| | | | | | | | * transcode.c (trans_open_i): just record from and to. (rb_trans_open): load transcodings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() isknu2008-08-122-6/+10
| | | | | | | | | | deprecated. (mSyslogConstants_LOG_MASK, mSyslogConstants_LOG_UPTO): Use NUM2INT() instead of FIX2INT() when the type of an given object is not determined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/transcode-tblgen.rb (#transcode_tblgen): slight messagematz2008-08-122-1/+6
| | | | | | improvement. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mention the Array#choice removal and the Array#delete change.knu2008-08-121-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete): Array#delete to return deleted element.matz2008-08-122-2/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (trans_open_i): check the result of rb_transcoding_open.akr2008-08-122-1/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_profile_result): use rb_str_catf.nari2008-08-122-17/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (TRANSCODE_ERROR): removed.akr2008-08-125-38/+53
| | | | | | | | | | | * tool/transcode-tblgen.rb: 8bit byte of ASCII-8BIT is a valid (but unique to ASCII-8BIT) character. * transcode.c (rb_eConversionUndefined): new error. (rb_eInvalidByteSequence): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: POP3Command should export @socket since POP calls #socket.aamine2008-08-122-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c, util.c (quorem, nrv_alloc, dtoa): enabled floating pointnobu2008-08-123-6/+12
| | | | | | | support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_intern): constified.nobu2008-08-121-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_profile_result): use sprintf.nari2008-08-122-17/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_intern): should check symbol table overflow.matz2008-08-122-2/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (send_request_with_body): Content-Length should be byte ↵aamine2008-08-122-1/+6
| | | | | | length of string. (closes #203) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/depend: (transvpath_prefix): prefix has no extension, so replaceusa2008-08-122-1/+6
| | | | | | | | %s with "". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline.rb (TestReadline#test_safe_level_4):kouji2008-08-122-0/+7
| | | | | | | tested Readline.vi_editing_mode? and Readline.emacs_editing_mode?. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/Makefile.in (.SUFFIXES): renamed to .trans.nobu2008-08-125-16/+53
| | | | | | | | | * enc/make_encmake.rb: added --encs and --no-encs options. * enc/depend (TRANSVPATH): fix for nmake. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/https.rb: supress syntax warning.aamine2008-08-122-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to ↵aamine2008-08-121-0/+5
| | | | | | supress syntax warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.nobu2008-08-122-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/getaddrinfo.c (getaddrinfo): constified.nobu2008-08-121-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: do not require 'mkmf'matz2008-08-122-2/+7
| | | | | | unless WIN32OLE is defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-08-111-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoder): add resetstate_func field forakr2008-08-116-27/+80
| | | | | | | | | | | | | | | | resetting a state of stateful encoding. * enc/trans/iso2022.trans (rb_EUC_JP_to_ISO_2022_JP): specify finish_eucjp_to_iso2022jp for resetstate_func. * tool/transcode-tblgen.rb: specify NULL for resetstate_func. * transcode.c (output_replacement_character): call resetstate_func before appending the replacement character. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (get_replacement_character): extracted fromakr2008-08-112-20/+31
| | | | | | | output_replacement_character. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoder): typedef at first.akr2008-08-112-3/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_trans_conv): find second last error.akr2008-08-113-4/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-08-12svn2008-08-111-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_trans_result_t): new type.akr2008-08-114-127/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | (rb_trans_elem_t): new type. (rb_trans_t): new type. * transcode.c (transcode_dispatch_cb): removed. (transcode_dispatch): removed. (rb_transcoding_result_t): moved to rb_trans_result_t in transcode_data.h. (transcode_restartable0): goto follow_info when FUNsi. (rb_transcoding_open): use get_transcoder_entry. (rb_trans_open): new function. (rb_trans_conv): ditto. (rb_trans_close): ditto. (trans_open_i): ditto. (trans_sweep): ditto. (more_output_buffer): take rb_trans_t instead of rb_transcoding as an argument. (transcode_loop): take from_encoding and to_encoding instead of tr as arguments. use rb_trans_open/rb_trans_conv/rb_trans_close. (str_transcode): don't use transcode_dispatch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_clone): should preserve cref_stack link.matz2008-08-112-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e