projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getline -> cgetline.
[super-star-trek.git]
/
io.c
diff --git
a/io.c
b/io.c
index 12a1993e693272f9fd29ce546229e63d92ff7e88..91d938720346faba5942380b9a30460d86adec8a 100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1,26
+1,14
@@
-#ifdef SERGEEV
#define _GNU_SOURCE
#define _GNU_SOURCE
-#endif /* SERGEEV */
#include <stdio.h>
#include <stdio.h>
-#ifdef SERGEEV
#include <unistd.h>
#include <unistd.h>
-#endif /* SERGEEV */
#include <termios.h>
#include <curses.h>
#include <signal.h>
#include <ctype.h>
#include <stdarg.h>
#include <termios.h>
#include <curses.h>
#include <signal.h>
#include <ctype.h>
#include <stdarg.h>
-#ifdef SERGEEV
-#include <conio.h>
-#endif /* SERGEEV */
-#ifdef MSDOS
-#include <dos.h>
-#endif
-#include <time.h>
-#i
fdef SERGEEV
+#i
nclude "conio.h"
#include "sstlinux.h"
#include "sstlinux.h"
-#endif /* SERGEEV */
#include "sst.h"
#ifndef SERGEEV
#include "sst.h"
#ifndef SERGEEV
@@
-336,7
+324,7
@@
void setpassword(void) {
#endif /* SERGEEV */
}
#endif /* SERGEEV */
}
-void getline(char *line, int max) {
+void
c
getline(char *line, int max) {
if (curses) {
#ifndef SERGEEV
wgetnstr(stdscr, line, max);
if (curses) {
#ifndef SERGEEV
wgetnstr(stdscr, line, max);