projects
/
debian
/
pforth
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
189c918
)
pforth: use extern "C" for IO functions
author
Phil Burk
<philburk@mobileer.com>
Mon, 20 May 2019 01:22:04 +0000
(18:22 -0700)
committer
Phil Burk
<philburk@mobileer.com>
Mon, 20 May 2019 01:22:04 +0000
(18:22 -0700)
So we can implement them in C++.
csrc/pf_io.h
patch
|
blob
|
history
diff --git
a/csrc/pf_io.h
b/csrc/pf_io.h
index db8fd92d46a1ba351861192ef01f9c5f3c9c6d77..b87d739514bbf3e4c86baa15d295948f0ae9a083 100644
(file)
--- a/
csrc/pf_io.h
+++ b/
csrc/pf_io.h
@@
-24,6
+24,9
@@
#define PF_CHAR_XON (0x11)
#define PF_CHAR_XOFF (0x13)
+#ifdef __cplusplus
+extern "C" {
+#endif
int sdTerminalOut( char c );
int sdTerminalEcho( char c );
int sdTerminalFlush( void );
@@
-31,6
+34,9
@@
int sdTerminalIn( void );
int sdQueryTerminal( void );
void sdTerminalInit( void );
void sdTerminalTerm( void );
+#ifdef __cplusplus
+}
+#endif
void ioInit( void );
void ioTerm( void );