X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/2dec14cd1dbf09755b0839859da1a942944a8376..dbc1de70e1824cf1a649d892db5746b86b34b4e7:/avr/cli.c?ds=sidebyside diff --git a/avr/cli.c b/avr/cli.c index b47603a..7c45251 100644 --- a/avr/cli.c +++ b/avr/cli.c @@ -309,6 +309,10 @@ static int cli_run_command(const char *cmd, uint_fast8_t flag) } else { str = sep; /* no more commands for next pass */ } + while (isblank(*token)) + ++token; + if (*token == '\0') /* empty (comment only) */ + continue; debug_parser("token: \"%s\"\n", token); /* find macros in this token and replace them */