summaryrefslogtreecommitdiff
path: root/src/kernel/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-08-15 19:13:45 -0700
committerKeith Packard <keithp@keithp.com>2018-10-13 08:22:50 -0700
commitc417ab1de2a083b5fcff2e081e4feb2a65887903 (patch)
tree614c7564321ea38402883992daeaea8f30bfe6b1 /src/kernel/ao.h
parentc6e57291d91f1f6c4de5c54a5cfd3eef66d9f830 (diff)
altos: Make cmd number parsing functions return value
Don't use a global variable to hold the result. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao.h')
-rw-r--r--src/kernel/ao.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h
index fd1d1276..3beeb880 100644
--- a/src/kernel/ao.h
+++ b/src/kernel/ao.h
@@ -160,8 +160,6 @@ enum ao_cmd_status {
ao_cmd_syntax_error = 2,
};
-extern uint16_t ao_cmd_lex_i;
-extern uint32_t ao_cmd_lex_u32;
extern char ao_cmd_lex_c;
extern enum ao_cmd_status ao_cmd_status;
@@ -189,13 +187,13 @@ ao_cmd_white(void);
int8_t
ao_cmd_hexchar(char c);
-void
+uint8_t
ao_cmd_hexbyte(void);
-void
+uint32_t
ao_cmd_hex(void);
-void
+uint32_t
ao_cmd_decimal(void);
/* Read a single hex nibble off stdin. */