From f32d2d732216b19d96c2e31b5aa3b977f9646354 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 3 Feb 2005 22:31:42 +0000 Subject: [PATCH] Pull SERGEEV dependencies out of sstlinux.c. --- reports.c | 13 ++++++++++++- sstlinux.c | 12 ------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/reports.c b/reports.c index 852094f..32ee650 100644 --- a/reports.c +++ b/reports.c @@ -4,7 +4,18 @@ #include #include "conio.h" #include "sstlinux.h" -#ifndef SERGEEV + +#ifdef SERGEEV +int c_printf (char *format, ... ) +{ + char buffer[BUFSIZ]; /* Well, BUFSIZ is from ncurses... */ + va_list argp; + va_start(argp,format); + vsprintf(buffer,format,argp); + va_end(argp); + return waddstr(conio_scr,buffer); +} +#else #define c_printf proutn #endif /* SERGEEV */ diff --git a/sstlinux.c b/sstlinux.c index 316d58a..b930842 100644 --- a/sstlinux.c +++ b/sstlinux.c @@ -10,18 +10,6 @@ static int fd = 0; -#ifdef SERGEEV -int c_printf (char *format, ... ) -{ - char buffer[BUFSIZ]; /* Well, BUFSIZ is from ncurses... */ - va_list argp; - va_start(argp,format); - vsprintf(buffer,format,argp); - va_end(argp); - return waddstr(conio_scr,buffer); -} -#endif /* SERGEEV */ - void sound(unsigned int freq) { if(fd==0) fd=open("/dev/console", O_RDONLY); -- 2.31.1