X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/fcf1d5b30bd3b341fb7596aef395f347c6dc97b4..dd1cc6f0b4a9cc2b49afb86c768813c087e46b4b:/avr/cli.c diff --git a/avr/cli.c b/avr/cli.c index 8a62bc0..7c45251 100644 --- a/avr/cli.c +++ b/avr/cli.c @@ -12,15 +12,10 @@ */ #include "cli.h" -#include "common.h" - -#include +#include "command.h" #include -#include -#include #include "config.h" -#include "command.h" #include "debug.h" #include "env.h" #include "cli_readline.h" @@ -314,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 */