Skip to content

Commit

Permalink
2000-06-12
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jun 12, 2000
1 parent ce6c53d commit 2bc48ec
Show file tree
Hide file tree
Showing 19 changed files with 494 additions and 92 deletions.
34 changes: 30 additions & 4 deletions ChangeLog
@@ -1,9 +1,39 @@
Sat Jun 10 23:10:32 2000 Yukihiro Matsumoto <matz@netlab.co.jp>

* io.c (rb_io_seek): whence is optional, default is SEEK_SET.

Fri Jun 9 15:11:35 2000 Yukihiro Matsumoto <matz@netlab.co.jp>

* time.c (make_time_t): supports daylight saving time.

* eval.c (rb_thread_safe_level): should retrive current $SAFE
value if a thread is the current thread.

Thu Jun 8 14:25:45 2000 Hiroshi Igarashi <iga@ruby-lang.org>

* lib/mkmf.rb: add target `distclean' in Makefile for extlib.
target `clean' doesn't remove Makefile.

Thu Jun 8 13:34:03 2000 Dave Thomas <dave@thomases.com>

* numeric.c: add nan?, infinite?, and finite? to Float

Thu Jun 8 00:31:04 2000 WATANABE Hirofumi <eban@os.rim.or.jp>

* regex.h: export re_mbctab properly on cygwin.

* dln.c: use dlopen instead of LoadLibrary on cygwin.

Thu Jun 8 13:41:34 2000 Tadayoshi Funaba <tadf@kt.rim.or.jp>

* file.c (rb_file_s_basename): might dump core.

Tue Jun 6 03:29:12 2000 Yukihiro Matsumoto <matz@netlab.co.jp>

* dir.c (dir_foreach): now returns nil for consistency.

* bignum.c (bigdivmod): modulo by small numbers was wrong.

Mon Jun 5 00:18:08 2000 WATANABE Hirofumi <eban@os.rim.or.jp>

* bignum.c: avoid conflict with USHORT on mingw32.
Expand Down Expand Up @@ -589,10 +619,6 @@ Sat Apr 1 00:16:05 2000 Yukihiro Matsumoto <matz@netlab.co.jp>

* object.c (sym_inspect): inspect gives ":sym", to_s gives "sym".

Fri Mar 31 08:56:55 2000 Yukihiro Matsumoto <matz@netlab.co.jp>

* parse.y (yylex):

Thu Mar 30 12:19:44 2000 Katsuyuki Komatsu <komatsu@sarion.co.jp>

* enum.c (enum_find): rb_eval_cmd() should be called with array.
Expand Down
2 changes: 2 additions & 0 deletions ToDo
Expand Up @@ -25,6 +25,8 @@ Language Spec.
* discourage use of Perlish features by giving warnings.
* `exception' method to be alternative for `$!'. ??
* non confusing in-block local variable (is it possible?)
+ remove scope by block
+ variables appears within block may have independent values.

Hacking Interpreter

Expand Down
10 changes: 7 additions & 3 deletions configure.in
Expand Up @@ -209,9 +209,13 @@ AC_CHECK_FUNCS(fmod killpg drand48 random wait4 waitpid syscall getcwd\
getpgrp setpgrp getpgid setpgid getgroups getpriority\
dlopen sigprocmask sigaction _setjmp setsid getrlimit)
AC_STRUCT_TIMEZONE
if test "$ac_cv_func_strftime" = no; then
AC_TRY_LINK([],
[extern int daylight; int i = daylight;], AC_DEFINE(HAVE_DAYLIGHT))
AC_CACHE_CHECK(for external int daylight, rb_cv_have_daylight,
[AC_TRY_LINK([],
[extern int daylight; int i = daylight;],
rb_cv_have_daylight=yes,
rb_cv_have_daylight=no)])
if test "$rb_cv_have_daylight" = yes; then
AC_DEFINE(HAVE_DAYLIGHT)
fi

if test "$ac_cv_func_sigprocmask" = yes && test "$ac_cv_func_sigaction" = yes; then
Expand Down
5 changes: 4 additions & 1 deletion dir.c
Expand Up @@ -783,7 +783,8 @@ dir_foreach(io, dirname)
VALUE dir;

dir = rb_funcall(rb_cDir, rb_intern("open"), 1, dirname);
return rb_ensure(dir_each, dir, dir_close, dir);
rb_ensure(dir_each, dir, dir_close, dir);
return Qnil;
}

static VALUE
Expand Down Expand Up @@ -814,6 +815,8 @@ Init_Dir()
rb_define_method(rb_cDir,"rewind", dir_rewind, 0);
rb_define_method(rb_cDir,"tell", dir_tell, 0);
rb_define_method(rb_cDir,"seek", dir_seek, 1);
rb_define_method(rb_cDir,"pos", dir_tell, 0);
rb_define_method(rb_cDir,"pos=", dir_seek, 1);
rb_define_method(rb_cDir,"close", dir_close, 0);

rb_define_singleton_method(rb_cDir,"chdir", dir_s_chdir, -1);
Expand Down
4 changes: 3 additions & 1 deletion ext/extmk.rb.in
Expand Up @@ -425,10 +425,12 @@ all: $(DLLIB)
clean:; @$(RM) *.#{$OBJEXT} *.so *.sl *.#{$LIBEXT} $(DLLIB)
@$(RM) *.ilk *.exp *.pdb *.bak
distclean: clean
@$(RM) Makefile extconf.h conftest.*
@$(RM) core ruby$(EXEEXT) *~
realclean: clean
realclean: distclean
EOS

mfile.printf <<EOS
Expand Down

0 comments on commit 2bc48ec

Please sign in to comment.