From 39b4caea81164b9a224e6abf715769c59f20c891 Mon Sep 17 00:00:00 2001 From: murase_syuka Date: Sat, 29 Nov 2014 01:02:40 +0900 Subject: closing to Local Scope --- mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c') diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c index 066293912..9759badfe 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c @@ -58,10 +58,11 @@ print_api_common_error(int32_t error) } #undef STRTOUL -#define STRTOUL(ul,s) \ +#define STRTOUL(ul,s) { \ + int i; \ ul = 0; \ - int i = 0; \ - for(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) -- cgit v1.2.3