projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos: Export 'ao_cmd_is_white' for use by other code
[fw/altos]
/
src
/
core
/
ao_cmd.c
diff --git
a/src/core/ao_cmd.c
b/src/core/ao_cmd.c
index 0c902f6be935368842f4e152bd062c295a90c182..14cb7569b5df9b0e9840afc8d494cccd5f1386ba 100644
(file)
--- 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();
}