Sun Jan 26 03:37:18 2003 Akinori MUSHA <knu@iDaemons.org>

Replace the complicated MFLAGS/MAKEFLAGS parser with something plain and
comprehensible. This fixes a bug where make flags were wrongly reordered
and the resulted command line often did not make sense especially when BSD
make is used with extra arguments given. Tested with FreeBSD and Linux by
me and mswin32, bccwin32 and mingw by usa.

2003-01-24

Fri Jan 24 18:15:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>

parse.y

tMINUS should have lower precedence than tPOW.

Fri Jan 24 05:12:55 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

misc/ruby-mode.el (ruby-font-lock-syntactic-keywords)

deal with escaped $ and ? at the end of strings. [ruby-talk:62297]

misc/ruby-mode.el (ruby-font-lock-keywords)

added defined?.

2003-01-23

Thu Jan 23 17:25:04 2003 Yukihiro Matsumoto <matz@ruby-lang.org>

eval.c (rb_eval)

do not warn discarding already undefined method.

lib/rational.rb

undef quo before replacing.

Thu Jan 23 15:49:57 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

parse.y (arg)

missing arguments.

Thu Jan 23 14:56:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>

lib/rational.rb

modified to support “quo”.

numeric.c (num_quo)

should return most exact quotient value, i.e. float by default, rational if
available.

Tue Jan 21 14:46:12 2003 Tanaka Akira <akr@m17n.org>

Tue Jan 21 04:15:50 2003 Tanaka Akira <akr@m17n.org>

Use redefined `to_s' as well as `inspect'. Useless
`pretty_print' methods removed.

(PP::ObjectMixin#pretty_print_inspect)

new method.

2003-01-20

Mon Jan 20 21:48:43 2003 Akinori MUSHA <knu@iDaemons.org>

configure.in (MANTYPE)

Detect if the system's nroff(1) groks mdoc. Provide a new option
–with-mantype={doc|man} in case the check does not work as expected.

Makefile.in (MANTYPE)

Define MANTYPE and pass it to instruby.rb.

instruby.rb

Convert mdoc manpages to man for systems which nroff(1) does not grok mdoc.

Mon Jan 20 21:25:18 2003 Akinori MUSHA <knu@iDaemons.org>

lib/tempfile.rb (self.open)

If a block is given, call it with tempfile as an argument and automatically
close the tempfile when the block terminates.

Mon Jan 20 21:02:50 2003 Akinori MUSHA <knu@iDaemons.org>

mdoc2man.rb

Properly put nested braces, parentheses and angles.

mdoc2man.rb

Add support for .An and .Aq/.Ao/.Ac.

mdoc2man.rb

Add support for .Dl.

mdoc2man.rb

Make .Pf macro actually work.

mdoc2man.rb

Properly handle .Os.

mdoc2man.rb

Correctly omit spaces around punctuation characters.

Mon Jan 20 19:43:41 2003 Akinori MUSHA <knu@iDaemons.org>

mdoc2man.rb

Make this work as a library.

Mon Jan 20 18:22:40 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

eval.c (rb_f_require)

purge too many goto's.

Mon Jan 20 17:50:05 2003 Akinori MUSHA <knu@iDaemons.org>

mdoc2man.rb (parse_macro)

Understand .Ux.

Mon Jan 20 17:32:56 2003 Akinori MUSHA <knu@iDaemons.org>

mdoc2man.rb

New file. A mdoc to man converter ported from Perl.

Mon Jan 20 15:40:15 2003 Akinori MUSHA <knu@iDaemons.org>

ruby.1

Properly close .Bl with .El.

Mon Jan 20 04:14:17 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

lib/mkmf.rb (egrep_cpp)

use inspect to show options.

lib/mkmf.rb (dir_config)

prior configured directories to defaults.

lib/mkmf.rb (dir_config)

extract first word to determine make command type.

Mon Jan 20 02:15:53 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

ext/aix_mksym.rb

no longer used.

Mon Jan 20 00:17:16 2003 Matt Armstrong <matt@lickey.com>

file.c (eaccess)

under windows, make eaccess() just call access(). [ruby-core:716],
[ruby-bugs:PR#556]

2003-01-19

Sun Jan 19 23:08:18 2003 Akinori MUSHA <knu@iDaemons.org>

lib/shellwords.rb (shellwords)

A backslash ('') in single quotes should not be regarded as meta
character. This bug or maybe feature was inherited from Perl's
shellwords.pl.

Sun Jan 19 14:01:12 2003 UENO Katsuhiro <unnie@blue.sky.or.jp>

regex.c (is_in_list)

should work well with UTF-8.

regex.c (re_match_exec)

ditto.

2003-01-18

Sat Jan 18 14:53:49 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>

bignum.c (rb_cstr_to_inum)

should not erase all 0s, but squeeze into one. [ruby-dev:19377]

2003-01-17

Fri Jan 17 03:33:42 2003 Akinori MUSHA <knu@iDaemons.org>

sprintf.c (rb_f_sprintf)

Fix a bug caused by an uninitialized variable v, that a bignum unexpectedly
gets converted into a string with its higher figures all filled with
./f/7/1, depending on the base. This bug seems to have been introduced in
rev.1.27.

Mon Jun 10 01:53:54 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

ruby_frame->last_func may be null, if it's called outside of a
method.

parse.y (arg)

use INT2NUM, not INT2FIX for tUMINUS.

parse.y (arg)

unnecessary negative tPOW treatment.

parse.y (tokadd_escape)

wrong backslash escapement.

2002-06-09

Sun Jun 9 17:40:41 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>

ext/dl

change the callback mechanism.

2002-06-08

Sat Jun 8 00:48:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

parse.y (stmt,arg)

too much void value check.

parse.y (stmt,arg)

need to check void value on rules which does not use node_assign().

2002-06-06

Thu Jun 6 19:50:39 2002 KONISHI Hiromasa <H_Konishi@ruby-lang.org>

Thu Jun 6 17:42:39 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

ext/socket/socket.c (ipaddr)

need not to taint hostnames.

Thu Jun 6 12:04:30 2002 NAKAMURA Usaku <usa@ruby-lang.org>

win32/Makefile.sub (config.status)

use sub! instead of []= because []= causes exception.

Thu Jun 6 11:42:15 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>

lib/thread.rb (Queue::pop)

get rid of race condition.

2002-06-05

Wed Jun 5 01:56:47 2002 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>

ext/tcltklib/tcltklib.c

Stop the running zombi-eventloop when mainloop_watchdog is killed.

2002-06-04

Tue Jun 4 23:09:24 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

range.c (range_include)

should be based on “<=>”, whereas member? still is based on “each”.

range.c (range_min,range_max)

redefine methods based on “<=>”.

Tue Jun 4 18:28:37 2002 WATANABE Hirofumi <eban@ruby-lang.org>

ext/socket/extconf.rb

The IPv6 stack of Cygwin is still incomplete.

ext/Win32API/extconf.rb

refactoring.

Tue Jun 4 07:03:33 2002 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>

ext/tk/lib/tkfont.rb

Fix bugs on TkFont.init_widget_font for Tk8.x.

ext/tk/lib/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

Wed Mar 6 17:58:08 2002 WATANABE Hirofumi <eban@ruby-lang.org>

Wed Mar 6 16:50:37 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

should not call rb_obj_clone(), since Module does not provide “allocate”.

class.c (rb_singleton_class)

should create new singleton class if obj is a class or module and attached
object is different, which means metaclass of singleton class is sought.

time.c (time_s_alloc)

now follows allocation framework.

2002-03-05

Tue Mar 5 05:56:29 2002 Akinori MUSHA <knu@iDaemons.org>

lib/getopts.rb

Rewrite to fix some bugs and complete features. - Accept options with the
colon in the first argument; getopts(“a:bcd:”) is equivalent to
getopts(“bc”, “a:”, “d:”). - Do not discard the argument that caused an
error. - Do not discard '-', which commonly stands for stdin or
stdout. - Allow specifying a long option with a value using '='.

2002-03-04

Mon Mar 4 13:19:18 2002 Akinori MUSHA <knu@iDaemons.org>

ext/extmk.rb.in (dir_config)

Sync with mkmf.rb: Fix a bug where
–with-xx-{include,lib} is ignored when –with-xx-dir is specified.

Sun Dec 9 18:06:26 2001 Minero Aoki <aamine@loveruby.net>

Sun Dec 9 23:00:54 2001 Keiju Ishitsuka <keiju@ishitsuka.com>

Sun Dec 9 22:15:59 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>

enum.c (enum_sort_by)

should replace with last elements.

2001-12-08

Sat Dec 8 23:27:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

io.c (rb_io_puts)

old behavior restored. rationale: a) if you want to call to_s for arrays,
you can just call print a, “n”. b) to_s wastes memory if array (and sum of
its contents) is huge. c) now any object that has to_ary is treated as an
array, using rb_check_convert_type().

Sat Dec 8 22:40:38 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

hash.c (rb_hash_initialize)

now accepts a block to calculate the default value. [new]

hash.c (rb_hash_aref)

call “default” method to get the value corresponding to the non existing
key.

hash.c (rb_hash_default)

get the default value based on the block given to 'new'. Now it
takes an optional “key” argument. “default” became the method to get the
value for non existing key. Users may override “default” method to change
the hash behavior.

2001-04-02

Mon Apr 2 16:52:48 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

should add all entries in pid_tbl. these changes are inspired by Koji Arai.
Thanks.

process.c (proc_wait)

should not iterate if pid_tbl is 0.

process.c (proc_waitall)

ditto.

Mon Apr 2 14:25:49 2001 Shugo Maeda <shugo@ruby-lang.org>

lib/monitor.rb (wait)

ensure reentrance.

lib/monitor.rb (wait)

fix timeout support.

Mon Apr 2 12:40:45 2001 Shugo Maeda <shugo@ruby-lang.org>

lib/net/imap.rb (media_subtype)

return subtype.

Mon Apr 2 12:01:15 2001 Shugo Maeda <shugo@ruby-lang.org>

lib/net/imap.rb (flag_list)

capitalize flags.

Mon Apr 2 01:32:38 2001 Akinori MUSHA <knu@iDaemons.org>

Makefile.in

Introduce MAINLIBS.

configure.in

Link libc_r against the ruby executable on FreeBSD, which is the first
attempt to work around a certain problem regarding pthread on FreeBSD. It
should make ruby/libruby happy when it loads an extension to a library
compiled and linked with -pthread. Note, however, that libruby is
not linked with libc_r so as not to mess up pthread unfriendly
stuff including apache+mod_ruby and vim6+ruby_interp.

Mon Apr 2 01:16:24 2001 WATANABE Hirofumi <eban@ruby-lang.org>

win32/win32.c

use ruby's opendir on mingw32.

win32/dir.h, dir.c, Makefile

ditto.

2001-04-01

Sun Apr 1 23:26:14 2001 TOYOFUKU Chikanobu <toyofuku@juice.or.jp>

numeric.c (flodivmod)

a bug in no fmod case.

Sun Apr 1 18:36:14 2001 Koji Arai <JCA02266@nifty.ne.jp>

process.c (pst_wifsignaled)

should apply WIFSIGNALED for status

2001-03-31

Sat Mar 31 04:47:55 2001 Shugo Maeda <shugo@ruby-lang.org>

lib/net/imap.rb

add document and example code.

Sat Mar 31 03:24:10 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

io.c (Init_IO)

value of $/ and $\ are no longer restricted to strings. type checks are
done on demand.

class.c (rb_include_module)

module inclusion should be check taints.

ruby.h (STR2CSTR)

replace to StringType() and StringTypePtr().

ruby.h (rb_str2cstr)

ditto.

2001-03-30

Fri Mar 30 23:37:49 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

eval.c (rb_load)

should not copy toplevel local variables. It cause variable/method
ambiguity. Thanks to L. Peter Deutsch.

Fri Mar 30 22:56:56 2001 Shugo Maeda <shugo@ruby-lang.org>

lib/net/imap.rb

rename ContinueRequest to ContinuationRequest.

Fri Mar 30 12:51:19 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

class.c (rb_include_module)

freeze check at first.

2001-03-29

Thu Mar 29 17:05:09 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

eval.c (rb_attr)

sprintf() and rb_intern() moved into conditional body.

2001-03-28

Wed Mar 28 23:43:00 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>

ext/extmk.rb.in, lib/mkmf.rb

add C++ rules in addition to C rules for the mswin32 platforms.

Wed Mar 28 19:29:21 2001 Akinori MUSHA <knu@iDaemons.org>

ext/extmk.rb.in, lib/mkmf.rb

move C++ rules to the right place.

Wed Mar 28 17:39:04 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

object.c (rb_str2cstr)

warn if string contains 0 and length value is ignored.

Wed Mar 28 15:00:31 2001 K.Kosako <kosako@sofnec.co.jp>

class.c (rb_singleton_class_clone)

should copy class constant table as well.

Wed Mar 28 14:23:23 2001 Yukihiro Matsumoto <matz@ruby-lang.org>

class.c (rb_include_module)

sometimes cache was mistakenly left uncleared - based on the patch by
K.Kosako.

ruby.h

all Check_SafeStr()'s are replaced by SafeStr() to ensure
'to_str' be always effective.