akr
279e612973
fix variable name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:53:20 +00:00
akr
a14d5eb09b
* enc/trans/newline.trans (rb_crlf_newline): new transcoder.
...
(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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:48:57 +00:00
akr
74a2a7bdbf
* enc/trans/newline.trans: new file.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:30:42 +00:00
nobu
ab0ee1d5e9
* common.mk (parse.c): generates parse.h together.
...
* id.c, id.h: use constants for parser tokens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:00:26 +00:00
ko1
cc77f676f4
* vm.c: rewind cfp to show proper backtrace.
...
[ruby-dev:35820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 04:49:37 +00:00
nobu
eaa1bcab35
* tool/make-snapshot: fix for clean up.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 04:09:15 +00:00
knu
7fe95731a8
* vm_core.h: Declare rb_iseq_clone, which is used in class.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 02:46:54 +00:00
akr
e9ebe1a161
* transcode.c (transcode_search_path): return the length of converter
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 02:40:24 +00:00
nobu
7caecdbe38
* tool/make-snapshot: try to find exported directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 01:45:35 +00:00
kouji
4e15017783
* doc/NEWS: Mention the Readline.vi_editing_mode?,
...
Readline.emacs_editing_mode?, Readline::HISTORY[] and
Readline::HISTORY.clear change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 01:25:40 +00:00
akr
5501d84ceb
* transcode.c (econv_primitive_convert): add output_size argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 23:03:46 +00:00
akr
9d4bb3b969
* transcode.c (rb_trans_conv): report last transcode_obuf_full.
...
(econv_max_output): new method Encoding::Converter#max_output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 22:43:17 +00:00
naruse
85c41f4fbc
* error.c (rb_eEncCompatError): add Exception.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 18:17:05 +00:00
naruse
fc6484cbf4
* transcode.c (str_transcode): fix error message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 17:37:47 +00:00
akr
edcd02cb5a
* transcode.c (rb_cEncodingConverter): new class Encoding::Converter.
...
(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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 14:46:18 +00:00
akr
c523f6f15e
* string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 14:16:43 +00:00
nobu
12096f588f
* tool/make-snapshot: fix for enc.mk.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 10:11:11 +00:00
nobu
f65719e5c6
* string.c (rb_str_drop_bytes): new function to drop first bytes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 10:08:48 +00:00
nobu
26bc383ef8
* string.c (rb_str_drop): new function to drop first bytes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 10:07:08 +00:00
nobu
8938f611f0
* string.c: more descriptive aliases of rb_str_new[2-5].
...
[ruby-dev:35615]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 10:00:34 +00:00
ko1
596eecd76d
* vm.c, vm_insnhelper.c (vm_define_method): move
...
function place.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:59:06 +00:00
nobu
456dc8bcee
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
...
rb_usascii_str_new2): use with-length versions with strlen to
optimize strlen, if optimized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:56:55 +00:00
kouji
741cc67800
* gc.c (getrusage_time): Returned effective value on Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:55:06 +00:00
akr
608cb2ed32
* transcode.c (rb_trans_open): free ts before raise.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:51:42 +00:00
matz
5643c0d69a
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignore
...
<=> comparison. [ruby-dev:35732]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:47:49 +00:00
akr
79cd32fe3b
* enc/trans/make_transdb.rb: *.erb.c is not used anymore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:43:44 +00:00
akr
6d87cec02c
* transcode_data.h (rb_trans_elem_t): new field: from and to.
...
* transcode.c (trans_open_i): just record from and to.
(rb_trans_open): load transcodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:42:49 +00:00
knu
d04cc54add
* ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() is
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:35:12 +00:00
matz
6885f3b708
* tool/transcode-tblgen.rb (#transcode_tblgen): slight message
...
improvement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:25:19 +00:00
knu
7464de7e8b
Mention the Array#choice removal and the Array#delete change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:23:19 +00:00
matz
e605839355
* array.c (rb_ary_delete): Array#delete to return deleted element.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 09:12:24 +00:00
akr
abef7fa890
* transcode.c (trans_open_i): check the result of rb_transcoding_open.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 08:17:27 +00:00
nari
5b3278b74a
* gc.c (gc_profile_result): use rb_str_catf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:24:30 +00:00
akr
5ade93542f
* transcode_data.h (TRANSCODE_ERROR): removed.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:20:10 +00:00
aamine
47c8401c5a
* lib/net/pop.rb: POP3Command should export @socket since POP calls #socket.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:09:08 +00:00
nobu
076b6a226f
* sprintf.c, util.c (quorem, nrv_alloc, dtoa): enabled floating point
...
support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:06:33 +00:00
nobu
e2159ba730
* string.c (rb_str_intern): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:03:23 +00:00
nari
fccc094568
* gc.c (gc_profile_result): use sprintf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:02:04 +00:00
matz
71553b91f6
* string.c (rb_str_intern): should check symbol table overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 06:39:08 +00:00
aamine
00b129c4e4
* lib/net/http.rb (send_request_with_body): Content-Length should be byte length of string. ( closes #203 )
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 06:32:50 +00:00
usa
6d8c1483d6
* enc/depend: (transvpath_prefix): prefix has no extension, so replace
...
%s with "".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 06:19:00 +00:00
kouji
fa9ef4bf00
* test/readline/test_readline.rb (TestReadline#test_safe_level_4):
...
tested Readline.vi_editing_mode? and Readline.emacs_editing_mode?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 06:17:48 +00:00
nobu
13f1418d54
* enc/Makefile.in (.SUFFIXES): renamed to .trans.
...
* enc/make_encmake.rb: added --encs and --no-encs options.
* enc/depend (TRANSVPATH): fix for nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:25:14 +00:00
aamine
ae04e36638
* lib/net/https.rb: supress syntax warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:20:09 +00:00
aamine
08795f9ceb
* lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to supress syntax warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:18:22 +00:00
nobu
3c1fca24e2
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:15:18 +00:00
nobu
0bf6ed0fc8
* ext/socket/getaddrinfo.c (getaddrinfo): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:08:51 +00:00
matz
c2e85dfa8f
* test/win32ole/test_err_in_callback.rb: do not require 'mkmf'
...
unless WIN32OLE is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 04:35:13 +00:00
akr
61f512a357
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-11 22:49:15 +00:00
akr
94ca2d94de
* transcode_data.h (rb_transcoder): add resetstate_func field for
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-11 22:44:23 +00:00