diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-18 04:56:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-18 04:56:27 +0000 |
commit | 32dc42cf1a248821df7594047bd3fd7822622b32 (patch) | |
tree | b44992897e705edbaec22a2c5e4aee402c5d5177 /class.c | |
parent | ec6b316cf26eae7eb36e3f9bce24110319e33e35 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -18,7 +18,6 @@ #include <stdio.h> #endif -struct st_table *new_idhash(); extern st_table *rb_class_tbl; extern VALUE cClass; @@ -572,7 +571,6 @@ rb_define_attr(klass, name, read, write) #include <varargs.h> #define va_init_list(a,b) va_start(a) #endif -#include <ctype.h> int #ifdef HAVE_STDARG_PROTOTYPES @@ -598,7 +596,7 @@ rb_scan_args(argc, argv, fmt, va_alist) return argc; } - if (isdigit(*p)) { + if (ISDIGIT(*p)) { n = *p - '0'; if (n > argc) ArgError("Wrong # of arguments (%d for %d)", argc, n); @@ -612,7 +610,7 @@ rb_scan_args(argc, argv, fmt, va_alist) goto error; } - if (isdigit(*p)) { + if (ISDIGIT(*p)) { n = i + *p - '0'; for (; i<n; i++) { var = va_arg(vargs, VALUE*); |