From: Neil H. <nh...@us...> - 2005-02-16 20:49:45
|
Update of /cvsroot/cscope/cscope/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8089/src Modified Files: command.c main.c Log Message: fixing cscope builds for platforms w/ curses libs that don't support KEY_RESIZE (sourceforge bug 1123741) Index: command.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/command.c,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** command.c 4 Feb 2005 12:19:08 -0000 1.25 --- command.c 16 Feb 2005 20:49:24 -0000 1.26 *************** *** 411,415 **** entercurses(); break; ! case KEY_RESIZE: exitcurses(); --- 411,415 ---- entercurses(); break; ! #ifdef KEY_RESIZE case KEY_RESIZE: exitcurses(); *************** *** 430,434 **** display(); /* display the version number and input fields */ break; ! case ctrl('L'): /* redraw screen */ #ifdef KEY_CLEAR --- 430,434 ---- display(); /* display the version number and input fields */ break; ! #endif case ctrl('L'): /* redraw screen */ #ifdef KEY_CLEAR Index: main.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/main.c,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** main.c 4 Feb 2005 12:19:08 -0000 1.35 --- main.c 16 Feb 2005 20:49:24 -0000 1.36 *************** *** 123,130 **** --- 123,132 ---- #endif + #ifdef KEY_RESIZE void sigwinch_handler(int sig, siginfo_t *info, void *unused) { ungetch(KEY_RESIZE); } + #endif int *************** *** 139,143 **** --- 141,147 ---- pid_t pid; struct stat stat_buf; + #ifdef KEY_RESIZE struct sigaction winch_action; + #endif mode_t orig_umask; *************** *** 146,155 **** /* save the command name for messages */ argv0 = argv[0]; ! winch_action.sa_sigaction = sigwinch_handler; sigemptyset(&winch_action.sa_mask); winch_action.sa_flags = SA_SIGINFO; sigaction(SIGWINCH,&winch_action,NULL); ! /* set the options */ while (--argc > 0 && (*++argv)[0] == '-') { --- 150,159 ---- /* save the command name for messages */ argv0 = argv[0]; ! #ifdef KEY_RESIZE winch_action.sa_sigaction = sigwinch_handler; sigemptyset(&winch_action.sa_mask); winch_action.sa_flags = SA_SIGINFO; sigaction(SIGWINCH,&winch_action,NULL); ! #endif /* set the options */ while (--argc > 0 && (*++argv)[0] == '-') { |