mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge branch 'master' of github.com:mruby/mruby
This commit is contained in:
+1
-1
@@ -359,7 +359,7 @@ MRB_API mrb_value mrb_obj_clone(mrb_state *mrb, mrb_value self);
|
||||
#define ISALPHA(c) (ISASCII(c) && isalpha((int)(unsigned char)(c)))
|
||||
#define ISDIGIT(c) (ISASCII(c) && isdigit((int)(unsigned char)(c)))
|
||||
#define ISXDIGIT(c) (ISASCII(c) && isxdigit((int)(unsigned char)(c)))
|
||||
#define ISBLANK(c) (ISASCII(c) && isblank((int)(unsigned char)(c)))
|
||||
#define ISBLANK(c) (ISASCII(c) && ((c) == ' ' || (c) == '\t'))
|
||||
#define ISCNTRL(c) (ISASCII(c) && iscntrl((int)(unsigned char)(c)))
|
||||
#define TOUPPER(c) (ISASCII(c) ? toupper((int)(unsigned char)(c)) : (c))
|
||||
#define TOLOWER(c) (ISASCII(c) ? tolower((int)(unsigned char)(c)) : (c))
|
||||
|
||||
@@ -58,9 +58,11 @@ print_api_common_error(int32_t error)
|
||||
}
|
||||
|
||||
#undef STRTOUL
|
||||
#define STRTOUL(ul,s) \
|
||||
#define STRTOUL(ul,s) { \
|
||||
int i; \
|
||||
ul = 0; \
|
||||
for(int i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0');
|
||||
for(i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0'); \
|
||||
}
|
||||
|
||||
static int32_t
|
||||
parse_breakpoint_no(char* args)
|
||||
|
||||
Reference in New Issue
Block a user