projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add relative mouse handling in mouse.asm
[retroray]
/
src
/
logger.c
diff --git
a/src/logger.c
b/src/logger.c
index
00d88b4
..
68178d3
100644
(file)
--- a/
src/logger.c
+++ b/
src/logger.c
@@
-22,6
+22,10
@@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#if defined(__MSDOS__) || defined(MSDOS)
static int setup_serial(int sdev);
#if defined(__MSDOS__) || defined(MSDOS)
static int setup_serial(int sdev);
+
+void ser_putchar(int c);
+void ser_puts(const char *s);
+void ser_printf(const char *fmt, ...);
#else
#define USE_STD
#endif
#else
#define USE_STD
#endif
@@
-179,6
+183,7
@@
static void logmsg(int type, const char *fmt, va_list ap)
case LOG_FILE:
case LOG_STREAM:
fputs(buf, outputs[i].out.fp);
case LOG_FILE:
case LOG_STREAM:
fputs(buf, outputs[i].out.fp);
+ fflush(outputs[i].out.fp);
break;
#if defined(MSDOS) || defined(__MSDOS__)
break;
#if defined(MSDOS) || defined(__MSDOS__)
@@
-250,6
+255,8
@@
void vdbgmsg(const char *fmt, va_list ap)
#if defined(MSDOS) || defined(__MSDOS__)
#if defined(MSDOS) || defined(__MSDOS__)
+#include <conio.h>
+
#define UART1_BASE 0x3f8
#define UART2_BASE 0x2f8
#define UART1_BASE 0x3f8
#define UART2_BASE 0x2f8