projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/lambdakey-v1.0: Switch back to command buffered input
[fw/altos]
/
src
/
lambdakey-v1.0
/
ao_scheme_os.h
diff --git
a/src/lambdakey-v1.0/ao_scheme_os.h
b/src/lambdakey-v1.0/ao_scheme_os.h
index 5641b476c79f537197bd682eef76178e57f30e05..6a2ab819c981f6f59e2c7784faf37cfe2dc051c1 100644
(file)
--- a/
src/lambdakey-v1.0/ao_scheme_os.h
+++ b/
src/lambdakey-v1.0/ao_scheme_os.h
@@
-30,7
+30,7
@@
#endif
static inline int
#endif
static inline int
-ao_scheme_getc() {
+
_
ao_scheme_getc() {
static uint8_t at_eol;
int c;
static uint8_t at_eol;
int c;
@@
-44,11
+44,7
@@
ao_scheme_getc() {
return c;
}
return c;
}
-static inline void
-ao_scheme_os_flush(void)
-{
- flush();
-}
+#define ao_scheme_getc(f) ({ (void) (f); _ao_scheme_getc(); })
static inline void
ao_scheme_abort(void)
static inline void
ao_scheme_abort(void)