summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools
diff options
context:
space:
mode:
authormurase_syuka <[email protected]>2014-11-29 01:02:40 +0900
committermurase_syuka <[email protected]>2014-11-29 01:02:40 +0900
commit39b4caea81164b9a224e6abf715769c59f20c891 (patch)
tree7891c1e44c5710d5c08b452fc4968a8491cbe811 /mrbgems/mruby-bin-debugger/tools
parent1248e2ba8afca860656891c98ac8e79f1fdef797 (diff)
downloadmruby-39b4caea81164b9a224e6abf715769c59f20c891.tar.gz
mruby-39b4caea81164b9a224e6abf715769c59f20c891.zip
closing to Local Scope
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c7
1 files changed, 4 insertions, 3 deletions
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)