X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_cmd.c;fp=src%2Fcore%2Fao_cmd.c;h=14cb7569b5df9b0e9840afc8d494cccd5f1386ba;hb=2ba946fea29ff134ffaeaea9d7932f4bd4e953aa;hp=0c902f6be935368842f4e152bd062c295a90c182;hpb=20282ef00afe70e3f3193f6f0200254cb2c33e93;p=fw%2Faltos diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c index 0c902f6b..14cb7569 100644 --- a/src/core/ao_cmd.c +++ b/src/core/ao_cmd.c @@ -121,10 +121,16 @@ ao_cmd_put8(uint8_t v) putnibble(v & 0xf); } +uint8_t +ao_cmd_is_white(void) +{ + return ao_cmd_lex_c == ' ' || ao_cmd_lex_c == '\t'; +} + void ao_cmd_white(void) { - while (ao_cmd_lex_c == ' ' || ao_cmd_lex_c == '\t') + while (ao_cmd_is_white()) ao_cmd_lex(); }