From: Eric S. Raymond Date: Thu, 3 Feb 2005 22:31:42 +0000 (+0000) Subject: Pull SERGEEV dependencies out of sstlinux.c. X-Git-Tag: 2.0~399 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f32d2d732216b19d96c2e31b5aa3b977f9646354;p=super-star-trek.git Pull SERGEEV dependencies out of sstlinux.c. --- 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);