X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fxmas.c;fp=test%2Fxmas.c;h=c9f338c0cd5dc8a238a7dbb254b5566636083ad8;hp=d99b8219c3062bb37f2039cc3ad90e8242b81e6b;hb=46722468f47c2b77b3987729b4bcf2321cccfd01;hpb=c633e5103a29a38532cf1925257b91cea33fd090 diff --git a/test/xmas.c b/test/xmas.c index d99b8219..c9f338c0 100644 --- a/test/xmas.c +++ b/test/xmas.c @@ -92,12 +92,10 @@ /******************************************************************************/ /* - * $Id: xmas.c,v 1.15 2000/09/02 18:45:53 tom Exp $ + * $Id: xmas.c,v 1.19 2002/06/29 23:32:18 tom Exp $ */ #include -#include - #define FROMWHO "Mark Hessling - (M.Hessling@gu.edu.au)" static int my_bg = COLOR_BLACK; @@ -149,11 +147,10 @@ static int strng5(void); static int reindeer(void); static int blinkit(void); -static RETSIGTYPE -done(int sig) GCC_NORETURN; +static RETSIGTYPE done(int sig) GCC_NORETURN; - static void - set_color(WINDOW *win, chtype color) +static void +set_color(WINDOW *win, chtype color) { if (has_colors()) { static bool *pairs; @@ -191,6 +188,8 @@ main(int argc GCC_UNUSED, char **argv GCC_UNUSED) { int loopy; + setlocale(LC_ALL, ""); + initscr(); noecho(); nonl(); @@ -1156,5 +1155,5 @@ done(int sig GCC_UNUSED) refresh(); endwin(); curs_set(1); - exit(EXIT_SUCCESS); + ExitProgram(EXIT_SUCCESS); }