summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* typo.nobu2002-06-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (Queue::pop): get rid of race condition.nobu2002-06-062-15/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Trivial: GCC3.1 fix (not worth to mention in ChangeLog)michal2002-06-051-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tcltklib.c:nagai2002-06-051-26/+42
| | | | | | | Stop the running zombi-eventloop when mainloop_watchdog is killed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/extconf.rb: refactoring.eban2002-06-042-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: The IPv6 stack of Cygwin is still incomplete.eban2002-06-042-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (Init_tcltklib): moved the definition before actions.eban2002-06-041-6/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkentry.rb: typo fix(!! -> ||).eban2002-06-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-06-04eban2002-06-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_aset): should raise error if an indexing stringmatz2002-06-0410-33/+54
| | | | | | | | | | | | is not found in the receiver. * sprintf.c (rb_f_sprintf): "%d" should convert objects into integers using Integer(). * lib/tempfile.rb (Tempfile::size): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tkfont.rb: Fix bugs on TkFont.init_widget_font for Tk8.x.nagai2002-06-0410-171/+721
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tkafter.rb: Add self to 1st argument of interval- and loop-proc TkAfter#current_interval returns an interval (sleep) time value TkAfter#current_args returns an array of arguments TkAfter#return_value returns a return value of last loop-proc e.g. TkAfter.new( proc{|obj| 500 - obj.current_interval}, 10, [proc{|obj| p obj.current_args}, 'proc', 1], proc{|obj| p obj.current_args; ['return', 2]}, [proc{|obj| p obj.return_value p ['proc', obj.current_args[0].call(obj.return_value[1], obj.current_args[1])]}, proc{|*args| args[0] + args[1]}, 1], proc{p ['proc', 4]} ).start(100) * tk*.rb: Allow to use Symbols for parameters. Allow new notation of constructor (also allow old notation). e.g. TkFrame.new('classname'=>'User'){|base| pack f = TkFrame.new(base, :classname=>'ButtonFrame').pack TkButton.new( :parent => f, :text => 'Quit', :command => proc{exit} ).pack( :fill => :x, :pady => 2 ) } * tkcanvas.rb: (TkcItem) Add 'coords' parameter to the canvas item constructor (for new notation of constructor). e.g. c = TkCanvas.new.pack l = TkcLine.new(c, :coords=>[[0,0], [100,100]]) * tcltklib.c: New 'mainloop' and 'mainloop_watchdog'. The priority of their event-loop can be controlled. They accept an optional argument. If it false, they don't exit although the root widget is destroyed. This function is sometimes useful, if it is used with 'restart'. 'mainloop' can't treat Thread#join/value in a callback routine. (e.g. TkButton.new(:command=>proc{p Thread.new{button.invoke}.value}) ) 'mainloop_watchdog' can treat them, but watchdog thread is always running (so, a little heavier than 'mainloop'). If the purpose of using Thread#join/value is to do something under some safe-level, please use Proc object. (e.g. :command=>proc{$SAFE=1;proc{$SAFE=2;button.invoke}.call;p $SAFE}) * tk.rb: Support functions of new 'mainloop' and 'mainloop_watchdog'. * tk.rb: (Tk.restart) Add 'app-name' paramater and 'use' parameter. 'app-name' specifies the name and the resource class of the application. If 'app-name' is specified to 'xxx', the application class on the resource database is set to 'Xxx' and the application name is changed by the same rule of Tk.appname method. 'use' specifies the main window for embedding the root widget instead of generating a new window. * tk.rb: Add new parameter 'widgetname' to the widget constructor to support effective use of Resource Database. For example, the resource 'Xxx*quit.text: QUIT' can set the text of the button generated by the following code. e.g. Tk.restart('Xxx') TkButton.new(nil, 'widgetname'=>'quit', 'command'=>proc{exit}).pack Tk.mainloop * tk.rb: TkOption::get always returns a tainted string. Add TkOption::new_proc_class. It generates a class to import procedures defined on the resource database. For example, there is a following resource file. ----< resource-test >------------ *CMD.foo: {|*args| p [$SAFE, :foo, args]} *CMD.XXX.bar: {|*args| p [$SAFE, :bar, args]} *Button.command: ruby {p self; p $SAFE; TkOption::CMD::XXX.bar(1,2,3)} --------------------------------- The following code is a sample of use of the resource file. e.g. require 'tk' TkOption.readfile 'resource-test' p TkOption.new_proc_class(:CMD, [:foo], 1) p TkOption.new_proc_class(:XXX, [:bar], 2, false, TkOption::CMD) TkButton.new(:text=>'test').pack Tk.mainloop git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/getaddrinfo.c (gai_strerror): make literals const.nobu2002-06-032-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/addrinfo.h: typo.nobu2002-06-034-51/+135
| | | | | | | | | | | | | | * ext/socket/getaddrinfo.c (gai_strerror): get rid of warning. * ext/socket/socket.c (init_inetsock): ensures resources are freed at exceptions. * ext/socket/socket.c (init_unixsock): ditto. * ext/socket/socket.c (udp_connect): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change PLATFORM with RUBY_PLATFORM.suke2002-06-033-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (here_document): check if identifier is terminated.nobu2002-06-023-5/+21
| | | | | | | | | | (ruby-bugs-ja:PR#239) * parse.y (yylex): should pushback proper char after '**'. (ruby-bugs-ja:PR#240) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge win32ole from roughsuke2002-06-0132-0/+14163
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-05-30eban2002-05-301-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_step): iteration done using "+" if elements arematz2002-05-305-183/+117
| | | | | | | | | | | | | | | | | | Numeric. Otherwise using "succ". * range.c (range_each): iteration done using "succ". If the elements does not respond to "succ", raise TypeError. As a result, all Enumerable methods, e.g. collect, require elements to respond to "succ'. * range.c (range_member): comparison done using "each", if elements are non-Numeric or no-"succ" objects. Otherwise compare using "<=>". * range.c (Init_Range): remove "size" and "length". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb: if StringIO is usable then use it.wakou2002-05-302-5/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed May 29 18:55:47 2002 KONISHI Hiromasa <H_Konishi@ruby-lang.org>H_Konishi2002-05-298-163/+177
| | | | | | | | | * function renames my* and win32_* to rb_w32_* in win32/win32.c fixed files win32/win32.c, win32/win32.h, win32/dir.h, hash.c, rubysig.h, signal.c, ext/socket/socket.c git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (tmcmp, search_time_t): activate unless HAVE_TIMEGM.eban2002-05-292-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix for POST method.wakou2002-05-291-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: yyparse #defines moved from intern.hmatz2002-05-2919-59/+166
| | | | | | | | | | | | | | | | | | | * ruby.c (proc_options): access prefixed "ruby_yydebug". * applied modifies to pacify some of gcc -Wall warnings. * parse.y (arg): no more ugly hack for "**", so that "-2**2" to be parsed as "(-2)**2", whereas "- 2**2" or "-(2)**2" to be parsed as "-(2**2)". * parse.y (yylex): '-2' to be literal fixnum. [new] * time.c (time_succ): new method for Range support. * time.c (time_arg): nil test against v[6] (usec). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb: not use const if GET, HEAD. check multipart form head.wakou2002-05-292-22/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: fixed format string for 'long' args (%d -> %ld).michal2002-05-289-21/+21
| | | | | | | | | | | | | | | | | | | | | * class.c: ditto. * eval.c: ditto. * numeric.c: ditto. * pack.c: ditto. * parse.y: ditto. * range.c: ditto. * string.c: ditto. * util.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (scope_node): trick to keep the node has a scope.nobu2002-05-284-4/+30
| | | | | | | | | | | | | | | * eval.c (rb_eval): NODE_EVSTR: write back local_tbl to the node. * eval.c (rb_eval): NODE_SCOPE: hold the scope node in ruby_scope. * eval.c (module_setup): ditto. * eval.c (rb_call0): ditto. * node.h (NEW_DASGN, NEW_DASGN_CURR): remove surplus semicolons. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): option parsing problem.nobu2002-05-232-2/+6
| | | | | | | (ruby-bugs-ja:PR#233) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): removed "-*-" support for #! line.matz2002-05-237-16/+109
| | | | | | | | | | | | | * io.c (rb_io_s_sysopen): new method to get a raw file descriptor. [new] * ext/socket/socket.c (tcp_sysaccept): new method to return an accepted socket fd (integer). [new] * ext/socket/socket.c (unix_sysaccept,sock_sysaccept): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): -T consumes digits only.nobu2002-05-222-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed May 22 20:18:31 2002 WATANABE Hirofumi <eban@ruby-lang.org>eban2002-05-222-1/+7
| | | | | | | * configure.in: need not link vsnprintf.o on MinGW. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex): case '<': here-document label ate '-'.aamine2002-05-222-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-05-22nobu2002-05-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* minor bug fixes.matz2002-05-222-5/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): should do exact match for Module#==.matz2002-05-219-192/+216
| | | | | | | | | | | | | | | | | | | * compar.c (cmp_eq): returns 'false' if <=> returns 'nil'. * compar.c (cmp_gt,cmp_ge,cmp_lt,cmp_le,cmp_between): ditto. * pack.c (pack_pack): should propagate taintedness. * pack.c (pack_unpack): ditto. * eval.c (rb_thread_schedule): need to preserve errno before calling rb_trap_exec(). * regex.c (calculate_must_string): a bug in charset/charset_not parsing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-font-lock-keywords): symbols end with '_'.nobu2002-05-212-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue May 21 04:48:37 2002 Sean Chittenden <sean@chittenden.org>wakou2002-05-202-2/+8
| | | | | | | | | * lib/cgi-lib.rb: Checking for constant MOD_RUBY instead of environment variable. Remove a mod_ruby warning and use Apache::request.headers_out[] instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (bodystmt): ensure clause was excuted on else clausenobu2002-05-202-1/+6
| | | | | | | without rescue clase. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Get rid of a function.ttate2002-05-201-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Get rid of a few functions.ttate2002-05-201-7/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rename PtrData::alloc and Struct#alloc to malloc respectively.ttate2002-05-206-20/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Get rid of the declaration of rb_str_cat2().ttate2002-05-204-48/+37
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-05-20nobu2002-05-201-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_clone): writing stream was not copied properly.nobu2002-05-202-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added a summary of the changes in the new date.tadf2002-05-191-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added an entry (date/format.rb).tadf2002-05-191-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added an entry (lib/date/format.rb).tadf2002-05-191-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* corrected paths.tadf2002-05-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Array#select instead of Array#indexes.tadf2002-05-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated to the new version (based on date2 3.2.1).tadf2002-05-186-340/+897
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): add VC++4/5 support about noreturnusa2002-05-182-0/+9
| | | | | | | directive. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e