Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* 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]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 81eeef303f4972afca08179b9c6d743330243a3b 1 parent 246e67d
matz authored
View
10 ChangeLog
@@ -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.
View
6 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) {
View
1  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;
}
View
2  numeric.c
@@ -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
View
1  util.h
@@ -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 */
Please sign in to comment.
Something went wrong with that request. Please try again.