Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
e09d8938
Commit
e09d8938
authored
Nov 09, 2009
by
Zachary T Welch
Browse files
script_debug(): improve types
Use unsigned type for number of arguments.
parent
c9429693
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/helper/command.c
View file @
e09d8938
...
...
@@ -59,12 +59,12 @@ static void tcl_output(void *privData, const char *file, unsigned line,
extern
command_context_t
*
global_cmd_ctx
;
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
name
,
int
argc
,
Jim_Obj
*
const
*
argv
)
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
name
,
unsigned
argc
,
Jim_Obj
*
const
*
argv
)
{
int
i
;
LOG_DEBUG
(
"command - %s"
,
name
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
for
(
unsigned
i
=
0
;
i
<
argc
;
i
++
)
{
int
len
;
const
char
*
w
=
Jim_GetString
(
argv
[
i
],
&
len
);
...
...
src/helper/command.h
View file @
e09d8938
...
...
@@ -170,6 +170,7 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t);
} \
} while (0)
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
cmd
,
int
argc
,
Jim_Obj
*
const
*
argv
);
void
script_debug
(
Jim_Interp
*
interp
,
const
char
*
cmd
,
unsigned
argc
,
Jim_Obj
*
const
*
argv
);
#endif
/* COMMAND_H */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment