diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-31 15:02:22 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-31 15:02:22 +0000 |
commit | a3e1b1ce7ed7e7ffac23015fc2fde56511b30681 (patch) | |
tree | 7b725552a9a4ded93849ca2faab1b257f7761790 /object.c | |
parent | 3e7566d8fb5138bb9cd647e5fdefc54fc9803509 (diff) | |
download | ruby-a3e1b1ce7ed7e7ffac23015fc2fde56511b30681.tar.gz |
* Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -384,7 +384,7 @@ rb_obj_is_instance_of(VALUE obj, VALUE c) * b.kind_of? C #=> false * b.kind_of? M #=> true */ - +#include "debug.h" VALUE rb_obj_is_kind_of(VALUE obj, VALUE c) { @@ -1974,7 +1974,7 @@ rb_cstr_to_dbl(const char *p, int badcheck) if (!p) return 0.0; q = p; - while (ISSPACE(*p)) p++; + while (ISSPACE(*p)) p++; d = strtod(p, &end); if (errno == ERANGE) { OutOfRange(); @@ -1982,7 +1982,7 @@ rb_cstr_to_dbl(const char *p, int badcheck) errno = 0; } if (p == end) { - bad: + bad: if (badcheck) { rb_invalid_str(q, "Float()"); } @@ -1996,8 +1996,8 @@ rb_cstr_to_dbl(const char *p, int badcheck) while (*p) { if (*p == '_') { /* remove underscores between digits */ - if (n == buf || !ISDIGIT(n[-1])) goto bad; - while (*++p == '_'); + if (n == buf || !ISDIGIT(n[-1])) goto bad; + while (*++p == '_'); if (!ISDIGIT(*p)) { if (badcheck) goto bad; break; @@ -2240,9 +2240,9 @@ VALUE ruby_top_self; * that follows, the vertical arrows represent inheritance, and the * parentheses meta-classes. All metaclasses are instances * of the class `Class'. - * + * * +-----------------+ - * | | + * | | * BasicObject-->(BasicObject) | * ^ ^ | * | | | @@ -2270,7 +2270,7 @@ VALUE ruby_top_self; * class hierarchy is a direct subclass of <code>BasicObject</code>. Its * methods are therefore available to all objects unless explicitly * overridden. - * + * * <code>Object</code> mixes in the <code>Kernel</code> module, making * the built-in kernel functions globally accessible. Although the * instance methods of <code>Object</code> are defined by the |