X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fview.c;h=c7d1771822aced3f898a746c5964594df029c8ff;hp=3b6591e7481d69d213b635f7c9d1df91294d0786;hb=daf57f17ced271693696cc30860aae20c97fb8d0;hpb=3f20704179ae1f625bd7bc75829929ccf46b25c3 diff --git a/test/view.c b/test/view.c index 3b6591e7..c7d17718 100644 --- a/test/view.c +++ b/test/view.c @@ -50,7 +50,7 @@ * scroll operation worked, and the refresh() code only had to do a * partial repaint. * - * $Id: view.c,v 1.82 2011/05/14 17:43:12 tom Exp $ + * $Id: view.c,v 1.84 2011/12/10 15:42:34 tom Exp $ */ #include @@ -110,9 +110,9 @@ static void show_all(const char *tag); #if CAN_RESIZE static RETSIGTYPE adjust(int sig); static int interrupted; +static bool waiting = FALSE; #endif -static bool waiting = FALSE; static int shift = 0; static bool try_color = FALSE; @@ -121,6 +121,8 @@ static NCURSES_CH_T **vec_lines; static NCURSES_CH_T **lptr; static int num_lines; +static void usage(void) GCC_NORETURN; + static void usage(void) { @@ -373,10 +375,12 @@ main(int argc, char *argv[]) adjust(0); my_label = "interrupt"; } -#endif waiting = TRUE; c = getch(); waiting = FALSE; +#else + c = getch(); +#endif if ((c < 127) && isdigit(c)) { if (!got_number) { MvPrintw(0, 0, "Count: ");