Skip to content

Commit

Permalink
* ext/readline/readline.c (readline_readline): type check.
Browse files Browse the repository at this point in the history
  [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
matz committed Oct 30, 2005
1 parent 246e67d commit 81eeef3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions 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.
Expand Down
6 changes: 4 additions & 2 deletions ext/readline/readline.c
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions ext/syck/rubyext.c
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion numeric.c
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions util.h
Expand Up @@ -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 */

0 comments on commit 81eeef3

Please sign in to comment.