summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.matz2008-08-114-8/+30
| | | | | | | | | | | | * ext/dl/dl.c (rb_dl_malloc): add rb_secure(2). * ext/dl/dl.c (rb_dl_realloc): ditto. * ext/dl/dl.c (rb_dl_free): ditto. * ext/dl/dl.c (rb_dl_ptr2value): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (getrusage_time): works only if RUSAGE_SELF is defined rightnobu2008-08-112-26/+34
| | | | | | | | | now. * gc.c (gc_profile_result): C99. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sample): rename #choice to #sample. inmatz2008-08-113-11/+47
| | | | | | addition, sample takes optional argument, a la #first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: added GC::Profiler.nari2008-08-112-0/+343
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed ChangeLog.kouji2008-08-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/README.ja: added API document forkouji2008-08-115-0/+105
| | | | | | | | | | | | | | | | Readline.vi_editing_mode? and Readline.emacs_editing_mode?. * ext/readline/extconf.rb: checked rl_editing_mode variable in Readline library. * ext/readline/readline.c (readline_s_emacs_editing_mode_p): added Readline.emacs_editing_mode? method. (readline_s_vi_editing_mode_p): added Readline.vi_editing_mode? method. (Init_readline): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (clone_method): should copy cbase in cref as well.matz2008-08-114-15/+60
| | | | | | | | | | | | | [ruby-dev:35116] * iseq.c (iseq_mark): mark original iseq object. * iseq.c (iseq_free): do not free internal data if they have original iseq to belong. * iseq.c (rb_iseq_clone): a new function to clone iseq value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline.rb: added test for Readline's classkouji2008-08-112-8/+134
| | | | | | | methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/iso2022.trans: renamed from iso2022.erb.c.akr2008-08-118-10/+28
| | | | | | | | | | | | | | | | | | | * enc/trans/single_byte.trans: ditto. * enc/trans/utf_16_32.trans: ditto. * enc/trans/korean.trans: ditto. * enc/trans/japanese.trans: ditto. * enc/depend: follow the renaming. * tool/build-transcode: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_broken_glibc_ia64_erfc): renamed fromakr2008-08-112-5/+11
| | | | | | | | rb_broken_glibc_ia64_erfc. [ruby-core:18228] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-08-11svn2008-08-111-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): rename fields.akr2008-08-113-33/+41
| | | | | | | | | | readlen -> recognized_len. feedlen -> readagain_len. * transcode.c: follow the field renaming. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable0): invalid handling simplified.akr2008-08-102-31/+23
| | | | | | | | (transcode_restartable): use PARTIAL_INPUT for converting buffered input. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c: include util.h. [ruby-dev:35715]mame2008-08-103-1/+8
| | | | | | | * common.mk: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): new field: flags.akr2008-08-103-61/+125
| | | | | | | | | | | | | | * transcode.c (load_transcoder): extracted from transcode_dispatch_cb. (rb_transcoding_result_t): renamed from transcode_result_t. (rb_transcoding_open): new function. (rb_transcoding_convert): ditto. (rb_transcoding_close): ditto. (transcode_loop): use rb_transcoding_open, rb_transcoding_convert and rb_transcoding_close. (str_transcode): don't need rb_transcoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/transcode-tblgen.rb: record checksum ofakr2008-08-102-2/+11
| | | | | | | transcode-tblgen.rb itself. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * config.guess ({powerpc-apple,i586-pc}-haiku): re-applied r18403.nobu2008-08-102-2/+11
| | | | | | | [ruby-core:18110] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * config.{guess,sub}: updated to automake-1.10.1.nobu2008-08-103-363/+549
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in,parse.y: removed garbage spaces.nobu2008-08-102-21/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/Makefile.in (make-workdir): use MAKEDIRS.nobu2008-08-104-4/+17
| | | | | | | | | * enc/depend: makes target directory before compile/link. * tool/transcode-tblgen.rb: creates target directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c: rename my_transcoding to tc and my_transcoder to tr.akr2008-08-102-96/+100
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): add feedlen field.akr2008-08-103-10/+69
| | | | | | | | | | | | | | | * transcode.c (transcode_restartable0): renamed from transcode_restartable. save input buffer into feed buffer if next character is started the point before input buffer. for example, "\x00\xd8\x01" then "\x02" in UTF-16LE. \x02 causes invalid and next character is started from \x01. (transcode_restartable): new function to call transcode_restartable0. if feed buffer is not empty, convert it at first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (extconf): use MAKEDIRS.nobu2008-08-103-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbolsnobu2008-08-102-1/+6
| | | | | | | instead of strings now. [ruby-dev:34930] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_char_start): refactored to remove readlenakr2008-08-102-35/+34
| | | | | | | | argument. (transcode_restartable): refactored to remove readlen variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.nobu2008-08-093-3/+6
| | | | | | | [ruby-core:18207] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* r18455 reverted.akr2008-08-092-93/+92
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-08-10svn2008-08-091-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),nobu2008-08-098-17/+32
| | | | | | | | | | | | ext/digest/md5/md5.c, ext/openssl/ossl.c (main), ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int. * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is no longer used so long time. based on a patch from Peter Bowen at [ruby-core:18208] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_loop): take destination and resize functionakr2008-08-093-17/+30
| | | | | | | | | | | | | | | as parameters. (more_output_buffer): ditto. (str_transcoding_resize): argument changed from rb_transcoding* to VALUE. (str_transcode): call transcode_loop with destination string and its resize function. * transcode_data.h (rb_transcoding): move ruby_string_dest and flush_func to transcode_loop parameters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: encs depend on transdb.hnaruse2008-08-092-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_rshift_sign, rb_cv_binary_elf): get rid ofnobu2008-08-092-31/+17
| | | | | | | AC_TRY_RUN. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_char_start): arguments changed.akr2008-08-092-92/+93
| | | | | | | | (transcode_restartable): arguments changed to avoid *in_pos points out of buffer by decreasing *in_pos. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): new fields: next_info and next_byte.akr2008-08-093-10/+33
| | | | | | | | | * transcode.c (transcode_restartable): save/restore next_info and next_byte. sync readlen and in_p when invalid. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable): my_transcoder argument removed.akr2008-08-092-8/+13
| | | | | | | (transcode_loop): my_transcoder argument removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoding): add fields for restartable akr2008-08-096-81/+438
| | | | | | | | | | | | | | | | | | | | | | transcoding. (rb_transcoder): add max_input field. from_unit_length field is renamed to input_unit_length. * tool/transcode-tblgen.rb: generate max_input field. * enc/trans/iso2022.erb.c: follow rb_transcoder change. * enc/trans/utf_16_32.erb.c: ditto. * transcode.c (PARTIAL_INPUT): new constant. (transcode_char_start): new function. (transcode_result_t): new type. (transcode_restartable): new function. (more_output_buffer): new function. (transcode_loop): use transcode_restartable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalidnobu2008-08-092-2/+8
| | | | | | | | preprocessor directives. a patch from Peter Bowen at [ruby-core:18211]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/make_encdb.rb, enc/trans/make_transdb.rb: skip nonexistentnobu2008-08-083-0/+7
| | | | | | | directory. [ruby-dev:35802] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e