summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/mkmf.rb (VPATH): use '&&' instead of 'and'.eban2003-07-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-07-03eban2003-07-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_values_at): extract common procedure frommatz2003-07-0313-96/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_ary_values_at. follow DRY principle. * re.c (match_values_at): values_at should understand ranges. * struct.c (rb_struct_values_at): ditto. * struct.c (inspect_struct): inspect format changed; add "struct " at the top. * sprintf.c (rb_f_sprintf): "%p" specifier for inspect output. (RCR#68) * eval.c (rb_mod_undef_method): allow "undef_method" to accept multiple arguments. (RCR#146) * lib/timeout.rb: put timeout in Timeout module. (RCR#121) [ruby-talk:61028] * re.c (match_groups): new method added. (RCR#139) * variable.c (rb_mod_const_of): should exclude constant defined in Object, unless retrieving constants of Object. * string.c (rb_str_new4): do not allocate new string if original is frozen or already have copy-on-write entry. [ruby-talk:74940] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (VPATH): convert from Windows form to Unix form oneban2003-07-032-1/+6
| | | | | | | MinGW. This fixes the build with GNU make 3.80-1 for Cygwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-07-02eban2003-07-021-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_shared_replace): clear flags before copy.matz2003-07-024-11/+26
| | | | | | | | | | * string.c (rb_str_replace): ditto. * eval.c (rb_yield_0): override visibility mode for module_eval etc. (ruby-bugs-ja PR#505) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: synchronize document with source code.aamine2003-07-023-171/+325
| | | | | | | * lib/net/pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify SMTP and SMTPCommand.aamine2003-07-024-327/+408
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new exception class SMTPError. * lib/net/smtp.rb: new exception class SMTPAuthenticationError. * lib/net/smtp.rb: new exception class SMTPServerBusy. * lib/net/smtp.rb: new exception class SMTPSyntaxError. * lib/net/smtp.rb: new exception class SMTPFatalError. * lib/net/smtp.rb: new exception class SMTPUnknownError. * lib/net/smtp.rb: change critical section protect algorithm. * lib/net/smtp.rb (SMTP#do_start): check authentication args before all. * lib/net/smtp.rb: new method send_message (alias send_mail). * lib/net/smtp.rb: new method open_message_stream (alias ready). * lib/net/pop.rb: POPBadResponse is a POPError. * lib/net/pop.rb (POPMail#pop): ban ReadAdapter. * lib/net/pop.rb (POPMail#top): ditto. * lib/net/pop.rb (POP3Command): change critical section protect algorithm. * lib/net/pop.rb (POP3Command#auth): USER and PASS should be one critical block. * lib/net/pop.rb (POP3Command#retr): ban `dest' argument using iterator. * lib/net/pop.rb (POP3Command#top): ditto. * lib/net/protocol.rb: #read_message_to -> #each_message_chunk * lib/net/protocol.rb: #D -> #LOG * lib/net/protocol.rb: #D_off -> #LOG_off * lib/net/protocol.rb: #D_on -> #LOG_on git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: set old class aliases for backward compatibility. ↵aamine2003-07-023-1/+20
| | | | | | | | | [ruby-talk:74863] * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-07-012-10/+24
| | | | | | | | * TkWindow include TkWinfo * treat unknown widget classes as subclasses of TkWindow git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#start): typofix.eban2003-07-012-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Precision for '**' enhanced (bug).shigek2003-07-011-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern): should use mbclen instead of mblen.eban2003-07-012-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-07-01nobu2003-07-011-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_define_class, rb_define_module): also set constant undernobu2003-07-014-27/+15
| | | | | | | | | | | | | Object. [ruby-dev:20445] * object.c (boot_defclass): ditto. * variable.c (rb_const_get_at, rb_const_get_0, rb_mod_const_at, rb_const_defined, mod_av_set, rb_const_assign): toplevel constants are now under Object, rb_class_tbl remains for GC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-30nobu2003-06-301-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (mnew): ignore metaclasses have no influence, for rklass.nobu2003-06-302-0/+9
| | | | | | | [ruby-talk:74706] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bug in '/' fixed by Tadashi Saito.shigek2003-06-291-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import drb-2.0.4 (use LocalJumpeError#reason)seki2003-06-283-56/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-28nobu2003-06-281-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_stack_grow_dir): check stack growing direction.nobu2003-06-284-26/+82
| | | | | | | | | | | | | | | * eval.c (rb_thread_restore_context): prior configuration macro. * gc.c (ruby_stack_length): always return the address of lower edge. * gc.c (rb_gc_mark_locations): remove margin. [ruby-dev:20462] * gc.c (rb_gc, Init_stack): prior configuration macro. * gc.c (Init_stack): add safety margin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_split_m): remove white spaces on the head ofnobu2003-06-272-1/+7
| | | | | | | the last element, when limit is specified. [ruby-talk:74506] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Changed according to Tadashi Saito's advice.shigek2003-06-271-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 1.From Tadashi Saito's adviceshigek2003-06-274-614/+740
| | | | | | | | | | to_parts changed to split,assign removed, ** added,bugs in infinite? & nozero? fixed. 2.Rounding functionalities added mode now accepts rounding mode. round accepts second argument for Bankers' rounding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-27eban2003-06-271-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fflush): need to check if closed after thread switch.nobu2003-06-263-2/+21
| | | | | | | | | | | | [ruby-dev:20351] * io.c (fptr_finalize): ditto. * string.c (rb_str_rindex_m): fixed wrong fix. should move backward first only when matching from the end. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-26nobu2003-06-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (class_instance_method_list): get rid of warning aboutnobu2003-06-262-25/+27
| | | | | | | | arguement type mismatch, and inline method_list(). [ruby-core:01198] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-252-2/+154
| | | | | | | | | | | | | | | | | * add and modify : TkWidget.database_class, TkWidget.database_classname, TkWidget#database_class, TkWidget#database_classname * instances of a subclass of TkToplevel or TkFrame are created with ":class=>subclass" option as default. For example, the followings create similar objects. (1) TkFrame.new(:class=>'XXX') (2) class XXX < TkFrame; end; XXX.new sample/tkoptdb.rb : * add new part of sample script git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_generic_class_instance_methods): merge argumentmatz2003-06-252-38/+24
| | | | | | | | check (and warning) into one function; following DRY principle. [ruby-core:01193] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkcanvas.rb :nagai2003-06-253-40/+128
| | | | | | | | | | | | | | | | | * Although requiring manual control of GC, memory eating problem of TkCanvas Items is fixed. Probably, a time when GC should run is only after removing many canvas items. GC's cost is large and the man who knows proper timing to start GC is the man who create the script. So, Ruby/Tk doesn't start GC automatically. tktext.rb : * add some methods and bug fix tk.rb : * add widget destroy hook binding to TkBindTag::ALL git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-25eban2003-06-251-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (autoload_delete): should delete Qundef from iv_tbl.matz2003-06-253-3/+11
| | | | | | | (ruby-bugs-ja PR#504) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-245-22/+204
| | | | | | | | | | | | | * TkToplevel, TkFrame, TkPanedwindow, TkOptionDB : bug fix * TkOptionDB : make it more secure to use procs defined on resourceDB sample/tkoptdb.rb, sample/resource.ja, sample/resource.en : * sample script how to use TkOptionDB. resource.ja and resource.en are samples of resource definition file which are read by tkoptdb.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/types.rb: replaced Kernel::Hash reference with Object::Hashwhy2003-06-242-1/+6
| | | | | | | from [ruby-talk:74270] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): show yielded block position not only yieldingnobu2003-06-242-8/+17
| | | | | | | point. [ruby-dev:20441] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#proxy_basic_auth): missing `@'.aamine2003-06-242-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * config.guess: have wrongly returned "alphaev56-unknown-linux-" on Linux/Alpha.aamine2003-06-242-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-24eban2003-06-241-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: always add -mieee for gcc/alpha. [ruby-dev:20429]aamine2003-06-232-13/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_unshift_m): need to check number of arguments.nobu2003-06-232-1/+11
| | | | | | | [ruby-talk:74189] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_close): missing prototype.aamine2003-06-235-1/+16
| | | | | | | | | * ext/socket/socket.c (bsock_do_not_rev_lookup_set): ditto. * ext/win32ole/win32ole.c (foletype_guid, foletype_progid): ditto. * error.c (syserr_initialize): length argument of sprintf() is an int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST: add wince files.eban2003-06-233-9/+17
| | | | | | | * ext/tk/MANIFEST: add sample/tkmenubutton.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-231-8/+23
| | | | | | | * TkRoot and TkToplevel : bug fix git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sorry, typo again.nobu2003-06-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typonobu2003-06-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (find_dirsep): get rid of warnings.nobu2003-06-236-30/+75
| | | | | | | | | | | | | | | | | | | * eval.c (error_print): temporary value might be disposed by GC. * hash.c (env_has_value, env_index): should not increment NULL. * io.c (io_read, rb_io_sysread): not read when length is 0. * io.c (rb_io_reopen): ensure initialized IO. * io.c (rb_io_init_copy): sychronize file pointer. * io.c (rb_io_s_pipe): make exception proof. * string.c (rb_str_rindex_m): Fixnum 0 matched end of string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_open_file): initialize flags.akr2003-06-232-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_upto): generate sequence according to "succ"matz2003-06-2311-47/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | order. formerly check was done by dictionary order. [ruby-talk:74138] * string.c (rb_string_value): fill constant empty string along with setting ELTS_SHARED if str->ptr is NULL. [ruby-core:01179] * string.c (rb_string_value_ptr): ditto. * string.c (rb_check_string_type): ditto. * string.c (str_gsub): move END(0) check before mbclen2(). * string.c (scan_once): reduce END(0) check. * io.c (rb_io_initialize): accept fixnum mode. * eval.c (error_print): replace strchr() by memchr(), einfo may contain "\0". * pack.c (pack_unpack): range check for "@" move; initialize check for "m". * error.c (syserr_initialize): avoid buffer overflow. * file.c (rb_file_s_readlink): expand buffer until readlink succeed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-23eban2003-06-231-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e