diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ext/readline/readline.c | 6 | ||||
-rw-r--r-- | ext/syck/rubyext.c | 1 | ||||
-rw-r--r-- | numeric.c | 2 | ||||
-rw-r--r-- | util.h | 1 |
5 files changed, 17 insertions, 3 deletions
@@ -1,3 +1,13 @@ +Mon Oct 31 03:19:36 2005 Yukihiro Matsumoto <matz@ruby-lang.org> + + * ext/readline/readline.c (readline_readline): type check. + [ruby-core:6089] + + * numeric.c (fix_rshift): RDoc fix. [ruby-core:6351] + + * util.h (strtod): add #undef for platforms defines strtod() + macro. [ruby-dev:27563] + Mon Oct 31 02:35:59 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * test/ruby/test_float.rb (test_precision): test by assert_in_delta. diff --git a/ext/readline/readline.c b/ext/readline/readline.c index b78a911b7c..aa481ad719 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -69,10 +69,12 @@ readline_readline(argc, argv, self) if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "stdin closed"); + Check_Type(rb_stdout, T_FILE); GetOpenFile(rb_stdout, ofp); - rl_outstream = ofp->f; + rl_outstream = GetWriteFile(ofp); + Check_Type(rb_stdin, T_FILE); GetOpenFile(rb_stdin, ifp); - rl_instream = ifp->f; + rl_instream = GetReadFile(ifp); buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt, &status); if (status) { diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index 6ae73a9714..ac0401ff9c 100644 --- a/ext/syck/rubyext.c +++ b/ext/syck/rubyext.c @@ -770,6 +770,7 @@ syck_parser_initialize(argc, argv, self) Check_Type(options, T_HASH); } rb_ivar_set(self, s_options, options); + rb_ivar_set(self, s_input, Qnil); return self; } @@ -2457,7 +2457,7 @@ fix_lshift(x, y) * call-seq: * fix >> count => integer * - * Shifts _fix_ left _count_ positions (right if _count_ is negative). + * Shifts _fix_ right _count_ positions (left if _count_ is negative). */ static VALUE @@ -61,6 +61,7 @@ char *ruby_getcwd _((void)); #define my_getcwd() ruby_getcwd() double ruby_strtod _((const char*, char **)); +#undef strtod #define strtod(s,e) ruby_strtod(s,e) #endif /* UTIL_H */ |