mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
XCursesExit() calls no longer needed.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_firework =
|
||||
"$Id: firework.c,v 1.17 2006/02/05 23:54:31 wmcbrine Exp $";
|
||||
"$Id: firework.c,v 1.18 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
void myrefresh(void);
|
||||
@@ -95,9 +95,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,11 +14,7 @@
|
||||
#include "../config.h"
|
||||
#include <curses.h>
|
||||
|
||||
#ifdef XCURSES
|
||||
# define ExitProgram XCursesExit(),exit
|
||||
#else
|
||||
# define ExitProgram exit
|
||||
#endif
|
||||
#define ExitProgram exit
|
||||
|
||||
#define HAVE_GETNSTR 1
|
||||
#define HAVE_GETTIMEOFDAY 1
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_newdemo =
|
||||
"$Id: newdemo.c,v 1.23 2006/02/10 19:06:22 wmcbrine Exp $";
|
||||
"$Id: newdemo.c,v 1.24 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
int WaitForUser(void);
|
||||
@@ -226,9 +226,7 @@ void trap(int sig)
|
||||
if (sig == SIGINT)
|
||||
{
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
@@ -270,9 +268,7 @@ int main(int argc, char **argv)
|
||||
if (win == NULL)
|
||||
{
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -439,9 +435,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_ptest =
|
||||
"$Id: ptest.c,v 1.16 2006/02/05 23:54:31 wmcbrine Exp $";
|
||||
"$Id: ptest.c,v 1.17 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
#include <curses.h>
|
||||
@@ -324,9 +324,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
} /* end of main */
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifdef PDCDEBUG
|
||||
# define CURSES_LIBRARY /* needed for the prototype of PDC_debug */
|
||||
const char *rcsid_testcurs =
|
||||
"$Id: testcurs.c,v 1.34 2006/02/05 23:54:31 wmcbrine Exp $";
|
||||
"$Id: testcurs.c,v 1.35 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -179,9 +179,6 @@ int main(int argc, char *argv[])
|
||||
delwin(win);
|
||||
endwin();
|
||||
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ void rmerror(void);
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_tui =
|
||||
"$Id: tui.c,v 1.16 2006/02/05 23:54:31 wmcbrine Exp $";
|
||||
"$Id: tui.c,v 1.17 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
#if defined(__unix) && !defined(__DJGPP__)
|
||||
@@ -394,9 +394,6 @@ static void cleanup(void) /* cleanup curses settings */
|
||||
delwin(wstat);
|
||||
normalcursor();
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
incurses = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_xmas =
|
||||
"$Id: xmas.c,v 1.17 2006/02/05 23:54:31 wmcbrine Exp $";
|
||||
"$Id: xmas.c,v 1.18 2006/02/13 17:18:05 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/* NOMACROS makes a big difference in the size with PDCurses */
|
||||
@@ -628,9 +628,6 @@ int main(int argc, char **argv)
|
||||
clear();
|
||||
refresh();
|
||||
endwin();
|
||||
#ifdef XCURSES
|
||||
XCursesExit();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user