summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ext/socket/mkconstants.rb: workaround for some of 4.4BSD-Liteusa2005-03-082-0/+8
| | | | | | | derived OSs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_exec_recursive): declaration should precede statementsusa2005-03-082-3/+8
| | | | | | | before C99. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (errno_missing): Errno.const_missing to allow referencesmatz2005-03-084-3/+27
| | | | | | | | | | | | | to SyscallError exceptions not defined on the platform. [ruby-core:04522] * error.c (Init_syserr): Errno::NOERROR(0) for fallback exception. * eval.c (block_pass): should not push unique number if a block is not an orphan. [ruby-dev:25808] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-08eban2005-03-071-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.66naruse2005-03-072-1/+7
| | | | | | | fixed: [ruby-dev:25828] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/webrick/httpsd.rb: fix typo in comment. suggested bygotoyuzo2005-03-072-2/+5
| | | | | | | Kazuhiko Shiozaki. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::GenericServer#start): shouldgotoyuzo2005-03-072-12/+29
| | | | | | | | restore @token if accept failure. suggested by Dominique Brezinski. [ruby-core:04518] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_require_safe): get actual path string under safe levelnobu2005-03-072-4/+9
| | | | | | | when requested. fixed: [ruby-dev:25815] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ssl_get_error): typo.usa2005-03-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_read,usa2005-03-072-3/+14
| | | | | | | ossl_ssl_write): need to set errno on Win32 platform. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):gotoyuzo2005-03-072-10/+11
| | | | | | | should set @eof and @rbuffer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (inspect_obj): unintended space removal.matz2005-03-078-42/+95
| | | | | | | | | | | | | [ruby-dev:25810] * eval.c (rb_exec_recursive): should not use NODE in disclosed context. [ruby-dev:25812] * io.c (rb_f_open): need not to check if to_open value is a T_FILE. [ruby-dev:25812] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tkutil/tkutil.c: follow the change of st.c (committed at Fri,nagai2005-03-062-57/+6
| | | | | | | 4 Mar 2005 15:47:47 +0900 by matz) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-07eban2005-03-061-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: fail to call TclTkLib.mainloop when $SAFE==4nagai2005-03-062-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ruby-electric.elzsombor2005-03-063-0/+206
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-06eban2005-03-061-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* duplicate tests removed.akr2005-03-061-13/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref. [ruby-core:4490]akr2005-03-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: rdoced by Sam Roberts.akr2005-03-062-149/+122
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgidakr2005-03-062-4/+14
| | | | | | | | may return nil. [ruby-talk:129826] reported by Daniel Berger. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/SUPPORT_STATUS: add version info of Tcl/Tk extensionsnagai2005-03-061-57/+65
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_start_ssl): should wait for thatgotoyuzo2005-03-056-61/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the underlying IO become readable or writable if the error was SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. [ruby-dev:25795] * ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): ditto. * ext/openssl/lib/openssl/buffering.rb (Buffering#consume_rbuf): pointless eof flag resetting is deleted. (Buffering#read): should return an empty string if the specified size is zero. (Buffering#readpartial): new method. (Buffering#readline): fix typo. (Buffering#getc): return the first character of string correctly. (Buffering#readchar): fix typo. (Buffering#eof?): should read again it the input buffer is empty. (Buffering#do_write): should rescue Errno::EAGAIN. (Buffering#puts): use "\n" as the output field separator. * ext/openssl/extconf.rb: get rid of GNUmakefile generation. * text/openssl/test_pair.rb: test for IO like methods. * test/ruby/ut_eof.rb: test about empty file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob): fixed mismatch of argument.ocean2005-03-053-11/+9
| | | | | | | | | * dir.c (fnmatch): removed unnecessary code. (by string.c 1.219) * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.65naruse2005-03-052-7/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tile.rb: lack of "autoload TProgressbar"nagai2005-03-052-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: freeze callback-entry objectsnagai2005-03-0520-63/+550
| | | | | | | * ext/tk/lib/tkextlib/tile.rb: support tile-0.6 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): allow putting spaces between targetnobu2005-03-054-4/+10
| | | | | | | and colon in depend file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-05usa2005-03-041-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (eaccess): workaround for VC++8 runtime.usa2005-03-043-0/+13
| | | | | | | * win32/win32.c (ioinfo): VC++8 support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replacenobu2005-03-044-225/+239
| | | | | | | | | | | also locally defined modules. * ext/iconv/iconv.c: rdocified. * ext/strscan/strscan.c: moved misplaced rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_exec_recursive): matched the declaration to prototype.usa2005-03-044-27/+12
| | | | | | | | | | * ext/curses/curses.c: don't need to check HAVE_WCOLOR_SET excluding window_color_set(). * ext/tk/tcltklib.c: fixed commit mistakes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: replace rb_protect_inspect() and rb_inspecting_p() bymatz2005-03-0473-920/+1312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_exec_recursive() in eval.c. * eval.c (rb_exec_recursive): new function. * array.c (rb_ary_join): use rb_exec_recursive(). * array.c (rb_ary_inspect, rb_ary_hash): ditto. * file.c (rb_file_join): ditto. * hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto. * io.c (rb_io_puts): ditto. * object.c (rb_obj_inspect): ditto * struct.c (rb_struct_inspect): ditto. * lib/set.rb (SortedSet::setup): a hack to shut up warning. [ruby-talk:132866] * lib/time.rb (Time::strptime): add new function. inspired by [ruby-talk:132815]. * lib/parsedate.rb (ParseDate::strptime): ditto. * regparse.c: move st_*_strend() functions from st.c. fixed some potential memory leaks. * exception error messages updated. [ruby-core:04497] * ext/socket/socket.c (Init_socket): add bunch of Socket constants. Patch from Sam Roberts <sroberts@uniserve.com>. [ruby-core:04409] * array.c (rb_ary_s_create): no need for negative argc check. [ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * parse.y (fcall_gen): lvar(arg) will be evaluated as lvar.call(arg) when lvar is a defined local variable. [new] * object.c (rb_class_initialize): call inherited method before calling initializing block. * eval.c (rb_thread_start_1): initialize newly pushed frame. * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] * eval.c (is_defined): NODE_IASGN is an assignment. * ext/readline/readline.c (Readline.readline): use rl_outstream and rl_instream. [ruby-dev:25699] * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check [ruby-dev:25675] * misc/ruby-mode.el: [ruby-core:04415] * lib/rdoc/generators/html_generator.rb: [ruby-core:04412] * lib/rdoc/generators/ri_generator.rb: ditto. * struct.c (make_struct): fixed: [ruby-core:04402] * ext/curses/curses.c (window_color_set): [ruby-core:04393] * ext/socket/socket.c (Init_socket): SO_REUSEPORT added. [ruby-talk:130092] * object.c: [ruby-doc:818] * parse.y (open_args): fix too verbose warnings for the space before argument parentheses. [ruby-dev:25492] * parse.y (parser_yylex): ditto. * parse.y (parser_yylex): the first expression in the parentheses should not be a command. [ruby-dev:25492] * lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330] * object.c (Init_Object): remove Object#type. [ruby-core:04335] * st.c (st_foreach): report success/failure by return value. [ruby-Bugs-1396] * parse.y: forgot to initialize parser struct. [ruby-dev:25492] * parse.y (parser_yylex): no tLABEL on EXPR_BEG. [ruby-talk:127711] * document updates - [ruby-core:04296], [ruby-core:04301], [ruby-core:04302], [ruby-core:04307] * dir.c (rb_push_glob): should work for NUL delimited patterns. * dir.c (rb_glob2): should aware of offset in the pattern. * string.c (rb_str_new4): should propagate taintedness. * env.h: rename member names in struct FRAME; last_func -> callee, orig_func -> this_func, last_class -> this_class. * struct.c (rb_struct_set): use original method name, not callee name, to retrieve member slot. [ruby-core:04268] * time.c (time_strftime): protect from format modification from GC finalizers. * object.c (Init_Object): remove rb_obj_id_obsolete() * eval.c (rb_mod_define_method): incomplete subclass check. [ruby-dev:25464] * gc.c (rb_data_object_alloc): klass may be NULL. [ruby-list:40498] * bignum.c (rb_big_rand): should return positive random number. [ruby-dev:25401] * bignum.c (rb_big_rand): do not use rb_big_modulo to generate random bignums. [ruby-dev:25396] * variable.c (rb_autoload): [ruby-dev:25373] * eval.c (svalue_to_avalue): [ruby-dev:25366] * string.c (rb_str_justify): [ruby-dev:25367] * io.c (rb_f_select): [ruby-dev:25312] * ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072] * struct.c (make_struct): [ruby-dev:25249] * dir.c (dir_open_dir): new function. [ruby-dev:25242] * io.c (rb_f_open): add type check for return value from to_open. * lib/pstore.rb (PStore#transaction): Use the empty content when a file is not found. [ruby-dev:24561] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (install-nodoc, pre-install-doc, post-install-doc):usa2005-03-042-1/+8
| | | | | | | fix some omissions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-04usa2005-03-041-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.63naruse2005-03-032-1/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.62naruse2005-03-032-137/+240
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-03eban2005-03-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c (ip_rbUpdateCommand, ip_rb_threadUpdateCommand):nobu2005-03-032-3/+6
| | | | | | | get rid of warnings with Tcl/Tk 8.3 or former. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add {pre,post}-install targets.nobu2005-03-035-5/+53
| | | | | | | | | | * instruby.rb (install?): install particular part. * bcc32/Makefile.sub (post-install-ext): remove debug information files after installation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc32,win32,wince}/Makefile.sub (config.h): check if affectednobu2005-03-036-20/+110
| | | | | | | | | | | | | | when makefiles are modified. * {bcc32,win32,wince}/Makefile.sub (config.status): add variables for tests. * win32/ifchange.bat: try to update a file only if modified. * win32/resource.rb: more descriptions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/rss/tdiary_plugin/rss-recent.rb: added site information.kou2005-03-032-18/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typo fixakr2005-03-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): return false if nothing matched.nobu2005-03-022-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c (lib_eventloop_core): fix typonagai2005-03-022-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_native_thread_kill): call pthread_kill() to send anagai2005-03-024-10/+60
| | | | | | | | | | | signal to ruby's native thread * ruby.h: add definition of ruby_native_thread_kill() * signal.c (sigsend_to_ruby_thread): send the signal to ruby's native thread ([ruby-dev:25744], [ruby-dev:25754]), and set signal mask to the current native thread git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: enforce thread-check and exception-handling tonagai2005-03-0224-681/+7670
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid SEGV trouble. * ext/tk/tkutil/tkutil.c; fix a bug on converting a SJIS string array to a Tcl's list string. * ext/tk/tcltklib.c: wrap Tcl's original "namespace" command to protect from namespace crash. * ext/tk/lib/multi-tk.rb: enforce exception-handling. * ext/tk/lib/multi-tk.rb: catch IRB_EXIT to work on irb. * ext/tk/lib/tk.rb: ditto. * ext/tk/tcltklib.c: add TclTkLib.mainloop_thread? * ext/tk/lib/multi-tk.rb: (bug fix) callback returns a value. * ext/tk/lib/tk/canvas.rb (delete): bug fix when multiple arguments. * ext/tk/lib/clock.rb: fix 'no method error'. * ext/tk/lib/clock.rb (self.clicks): accept a Symbol argument. * ext/tk/lib/variable.rb: be able to set default_value_type; :numeric, :bool, :string, :symbol, :list, :numlist or nil (default; same to :string). If set a type, TkVariable#value returns a value of the type. * ext/tk/lib/tkextlib/tclx/tclx.rb: add Tk::TclX.signal to warn the risk of using TclX extension's 'signal' command. * ext/tk/sample/irbtk.rb: irb with Ruby/Tk. * ext/tk/sample/demos-*/anilabel.rb: bug fix on 'show code' * ext/tk/sample/demos-*/aniwave.rb: new Ruby/Tk animation demo. * ext/tk/sample/demos-*/pendulum.rb: ditto. * ext/tk/sample/demos-*/goldberg.rb: ditto. * ext/tk/sample/demos-*/widget: add entries of animation demos. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2005-03-02nobu2005-03-021-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): [EXPERIMENTAL] NODE_LAMBDA implemented.nobu2005-03-024-3/+52
| | | | | | | | | | | | | [ruby-dev:25780] * node.h (NODE_LAMBDA): for literal Proc object. * parse.y (expr): interpret mere do...end block as proc object. * parse.y (primary): ditto, for brace block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* regcomp.c: uninitialized member (backrefed_status) was used.kosako2005-03-012-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e