summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * time.c (time_arg): initialize v[6] even when argc is 10 toakr2003-06-232-0/+6
| | | | | | | avoid valgrind error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-222-11/+165
| | | | | | | | | | | | | | | | | | * TkRoot.new and TkToplevel.new accept Wm commands as elements of a hash argument. e.g. TkRoot.new(:title=>'App Title') TkToplevel.new(:parent=>Tk.root, :title=>'XXX', :class=>'ZZZ') * TkMenu :: add some methods * TkOptionMenubutton :: bug fix sample/tktimer2.rb * add comments about the usage of a TkTimer object. sample/tkmenubutton.rb * sample of TkMenubutton and TkOptionMenubutton git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typo in date, reported by daz.nobu2003-06-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): forgot "break";matz2003-06-211-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): should not propagate distination tag ifmatz2003-06-212-4/+5
| | | | | | | tag is already handled in this level. (ruby-bugs-ja PR#501) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (str_to_id): check for empty string before intern.matz2003-06-212-5/+15
| | | | | | | [ruby-talk:74006] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-212-6/+52
| | | | | | | | | | | | | * TkRoot.new and TkToplevel.new accept Wm commands as elements of a hash argument. e.g. TkRoot.new(:title=>'App Title') TkToplevel.new(:parent=>Tk.root, :title=>'XXX', :class=>'ZZZ') sample/tktimer2.rb * add comments about the usage of a TkTimer object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-21eban2003-06-211-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_to_id): use rb_str_intern() instead of rb_intern()nobu2003-06-212-2/+7
| | | | | | | directly, for sanity check. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ruby/Tk libraries except tk.rb :nagai2003-06-218-22/+82
| | | | | | | | | | | | | | | | | | | | | * remove direct-accesses to a TkComm::INTERP * remove direct-accesses to a TkComm::INITIALIZE_TARGETS * use TkINTERP_SETUP_SCRIPTS constant for setting up the interpreter tcltklib.c : * support to create a safe interpreter with safe-Tk ( Tk8.x ) you can test it by the following --------------------------------------------- require 'tk' safeip = Tk::INTERP._eval('::safe::interpCreate') Tk::INTERP._eval('::safe::loadTk ' + safeip) Tk::INTERP._eval(safeip + ' eval button .b -text SlaveIP -command exit') Tk::INTERP._eval(safeip + ' eval pack .b') Tk.mainloop --------------------------------------------- git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wince/Makefile.sub: undefine HAVE__SETJMP.uema22003-06-213-2/+7
| | | | | | | * wince/resource.rb: include winver.h in wince3.0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): should not propagate TAG_BREAK andmatz2003-06-202-5/+10
| | | | | | | TAG_RETURN from orphan Proc object. [ruby-core:01148] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c :nagai2003-06-202-7/+12
| | | | | | | * Tk interpreter returns TAINTED strings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (new_yield): distinguish "yield 1,2" and "yield [1,2]".matz2003-06-2010-38/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:20360] * eval.c (rb_eval): support new_yield() change. * variable.c (rb_const_get_0): warn for Foo::BAR when BAR is a toplevel constant (i.e. a constant defined under Object). [ruby-list:36935] * parse.y (no_blockarg): separate no block argument check and ret_args argument processing. * range.c (rb_range_beg_len): out_of_range check after adjusting end point. [ruby-dev:20370] * parse.y (call_args): the first argument to arg_cancat() should be NODE_LIST. [ruby-core:01151] * eval.c (rb_eval): should dispatch based on ID type. * eval.c (rb_yield_0): should restore scope_vmode during yield. [ruby-dev:20361] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * defines.h (PATH_ENV): name of PATH environment. [new].usa2003-06-206-23/+55
| | | | | | | | | | | | | | | * defines.h (ENV_IGNORECASE): define for case insensitive platforms to access environment variables. * dln.c (dln_find_exe): use PATH_ENV instead of "PATH". * hash.c (env_delete, rb_f_getenv, env_fetch, rb_env_path_tainted, env_aset): ditto. * ruby.c (proc_options): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c :nagai2003-06-197-12/+284
| | | | | | | | | | | | | | | | | | | | | | | | | * lib_do_one_event() : change default value of the argument * lib_do_one_event() : returns true/false * add TclTkLib::EventFlag::NONE ( == 0 ) * add set_no_event_wait() and get_no_event_wait() * modify MANUAL.euc and README.euc tk.rb : * change default value of TkCore.do_one_event argument * add TkCore.set_no_event_wait(wait) and TkCore.get_no_event_wait * add Tk.exit ( == destroy root widget ) tkafter.rb : * rename TkAfter => TkTimer ( TkAfter is an alias name now. ) * set_callback returns self * continue() raises an exception, if already running or no procedure. * skip() raises an exception, if not running. sample/tktimer2.rb * new sample for TkTimer class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Import csv module.nahi2003-06-193-13/+1340
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import from drb-2.0.4b3seki2003-06-191-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rubytest.rb: add library path to include standard libraries.eban2003-06-192-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (env_delete, rb_f_getenv, env_fetch): case insensitive tousa2003-06-193-9/+14
| | | | | | | access environment variables on DOSISH platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-1814-432/+1650
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * small bug fix * rename 'no_create' option to 'without_creating' * add TkWindow#pack_in, TkWindow#grid_in, TkWindow#place_in * add TkWindow#bind_class and TkWindow#database_class If defined specific_class (@db_class), bind_class returns @db_class. In other case, bind_class returns TkWinow#class(). It is useful for binding. TkWindow#database_class is defined for querying the option database. It's same to TkWinfo.classname(self). * add TkBindTag.new_by_name and TkDatabaseClass for binding to database class * check varname whether already exsist or not. (TkVarAccess.new) * TkTextWin#bbox returns an array of four numbers * autoload TkDialog2, TkWarning2 * scan event callback arguments and convert to proper type * TkBindTag.new accepts a block ( TkBindTag.new(context){callback} ) * If given taglist, TkWindow#bindtags(taglist) returns taglist * add TkWindow#bindtags=(taglist) * Tk.focue and Tk.focus_lastfor return nil if there is no target widget. * Tk::Wm.client returns the argument string when setting name * TkGrid.columnconfiginfo and rowconfiginfo given a slot return a number. * TkWindow.grid_columnconfiginfo and grid_rowconfiginfo :: ditto * rename and define alias :: TkOption ==> TkOptionDB * define alias :: TkTimer ==> TkAfter * some instance methods change from public to private * some TkComm methods change to module functions (help to treat return values from Tk) * add support for -displayof option to some TkWinfo methods * bind, bind_append and bind_remove :: returns the target of event-binding * add Tk8.4 features * add TkPaneWindow tkdialog.rb: * classes without showing at initialize : TkDialog2, TkWarning2 * add show method to reuse TkDialog object * some instance methods change from public to private * add new features for configuration tktext.rb : * small bug fix * some methods return self * add TkTextMark#+(mod) and TkTextMark#-(mod) (e.g. mark + '3 chars') * add some methods tkcanvas.rb : * small bug fix * some methods return self tkentry.rb : * some methods return self * TkEntry#bbox returns an array of four numbers * scan validatecommand arguments and convert to proper type tkbgerror.rb : * support to define a error handler by user tcltklib.rb : * reported by Ferenc Engard <engard@all.hu> on [ruby-talk:60759] ... and so on git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import from drb-2.0.4b3seki2003-06-1811-0/+1353
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added changelogs about zlibkatsu2003-06-181-2/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This is a null commit to correct the previous log.katsu2003-06-180-0/+0
| | | | | | | (zstream_run): In a particular situation, deflate/inflate will return Z_BUF_ERROR, even though another call is required by the zlib library. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***katsu2003-06-181-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_load_handler): merge key implemented.why2003-06-185-20/+112
| | | | | | | | | | | | | | * ext/syck/rubyext.c (transfer_find_i): removed use of String#=~ in favor of Regexp#match. * lib/yaml.rb: YAML::try_implicit returns. * lib/yaml/rubytypes.rb: Regexps added for type matching. * lib/yaml/emitter.rb: fix String + nil error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/gram.c: added grammar for certain empty sequence entries.why2003-06-179-765/+1049
| | | | | | | | | | | | | * ext/syck/handler.c, ext/syck/syck.c, ext/syck/syck.h: track bad anchors. * ext/syck/token.c: added pause token, tag possible circular references. * lib/yaml/rubytypes.rb: parsing YMD time as Date instance. * ext/syck/rubyext.c: ditto. DomainType, PrivateType, BadAlias classes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_opendir): need to set errno. [ruby-talk:73761]usa2003-06-172-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: remove rb_cBlock.matz2003-06-173-44/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_fix2uint): renamed from rb_fix2int on IA64.eban2003-06-162-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): format the message for localjump_error().nobu2003-06-162-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (rb_dl_callback): use rb_block_proc() instead ofusa2003-06-163-2/+9
| | | | | | | | | rb_block_new(). * ext/win32ole/win32ole.c (ev_on_event): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_alloc): re-unification of Block and Proc. Blockmatz2003-06-1619-177/+162
| | | | | | | class is no longer available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub: undefine HAVE_GETGROUPS.eban2003-06-162-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/quickpath.rb: escape '[' to avoid warning.eban2003-06-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-16eban2003-06-161-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (calculate_must_string): should handle option_setmatz2003-06-162-2/+13
| | | | | | | | | | properly. [ruby-talk:73481] * regex.c (re_compile_fastmap): a bug in flag manipulation. [ruby-talk:73549] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* REXML hadn't been tested with Ruby 1.8.0, which was really, really,ser2003-06-155-26/+28
| | | | | | | | | unbelievably stupid of me. There were a lot of warnings and some errors that were caused by Block vs. Proc differences; these have been fixed. REXML passes all of the tests under Ruby 1.8.0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-14eban2003-06-141-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (method_arity): should handle NODE_BMETHOD andmatz2003-06-142-7/+15
| | | | | | | NODE_DMETHOD. [ruby-core:01138] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.shugo2003-06-132-1/+14
| | | | | | | * lib/net/ftp.rb (putbinaryfile): rescue FTPPermError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb : add 'no_create' option to widget initialize method.nagai2003-06-123-8/+28
| | | | | | | | | | It allows to create ruby objects for widgets created on Tcl/Tk. (e.g. TkButton.new('widgetname'=>'.bbb', 'no_create'=>true) ) It is useful for some Tcl/Tk Mega Widgets. MANIFEST, README : forgot to commit when added tkmacpkg.rb and tkwinpkg.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb : widget configure returns self (for method call chain)nagai2003-06-123-0/+135
| | | | | | | | tkmacpkg.rb : Mac resource (not new but not included untill now) tkwinpkg.rb : Win DDE and registry (not new but not included untill now) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: preserve newlines prepended to a block.why2003-06-107-1175/+1227
| | | | | | | | | | | | | | | | * ext/syck/implicit.c (syck_match_implicit): added !merge and !default. * lib/yaml/constants.rb: remove '\z' escape. * lib/yaml/emitter.rb: ensure reset of @seq_map shortcut flag. * lib/yaml/encoding.rb: remove Unicode translation methods. * lib/yaml/rubytypes.rb: improved round-tripping of Strings. [ruby-core:1134] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: add block to proc to avoid warning.eban2003-06-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/cdata.rb,lib/rexml/quickpath.rb,lib/rexml/parsers/baseparser.rb:eban2003-06-103-4/+4
| | | | | | | avoid warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2003-06-10eban2003-06-101-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: typo.matz2003-06-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/slex.rb: small cleanups. (ruby-bugs-ja PR#492)matz2003-06-102-10/+11
| | | | | | | * lib/irb/ruby-lex.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb (IRB::Irb::eval_input): warn and exit if $SAFE >=3matz2003-06-106-11/+30
| | | | | | | | | | | | | | after input evaluation. * lib/irb.rb (IRB::Irb::eval_input): untaint input string. now irb works for levels 1 and 2. * ext/syck/rubyext.c (syck_loader_transfer): should not use rb_cProc directly, since type_proc may be Proc, Block, or Method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e