"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "signal.c" between
less-580.tar.gz and less-581.tar.gz

About: less is a file pager (a program that displays text files similar to "more" or "pg"). Beta version.

signal.c  (less-580):signal.c  (less-581)
skipping to change at line 35 skipping to change at line 35
*/ */
public int sigs; public int sigs;
extern int sc_width, sc_height; extern int sc_width, sc_height;
extern int screen_trashed; extern int screen_trashed;
extern int lnloop; extern int lnloop;
extern int linenums; extern int linenums;
extern int wscroll; extern int wscroll;
extern int reading; extern int reading;
extern int quit_on_intr; extern int quit_on_intr;
extern int secure;
extern long jump_sline_fraction; extern long jump_sline_fraction;
/* /*
* Interrupt signal handler. * Interrupt signal handler.
*/ */
#if MSDOS_COMPILER!=WIN32C #if MSDOS_COMPILER!=WIN32C
/* ARGSUSED*/ /* ARGSUSED*/
static RETSIGTYPE static RETSIGTYPE
u_interrupt(type) u_interrupt(type)
int type; int type;
skipping to change at line 162 skipping to change at line 163
{ {
/* /*
* Set signal handlers. * Set signal handlers.
*/ */
#if MSDOS_COMPILER==WIN32C #if MSDOS_COMPILER==WIN32C
SetConsoleCtrlHandler(wbreak_handler, TRUE); SetConsoleCtrlHandler(wbreak_handler, TRUE);
#else #else
(void) LSIGNAL(SIGINT, u_interrupt); (void) LSIGNAL(SIGINT, u_interrupt);
#endif #endif
#ifdef SIGTSTP #ifdef SIGTSTP
(void) LSIGNAL(SIGTSTP, stop); (void) LSIGNAL(SIGTSTP, secure ? SIG_IGN : stop);
#endif #endif
#ifdef SIGWINCH #ifdef SIGWINCH
(void) LSIGNAL(SIGWINCH, winch); (void) LSIGNAL(SIGWINCH, winch);
#endif #endif
#ifdef SIGWIND #ifdef SIGWIND
(void) LSIGNAL(SIGWIND, winch); (void) LSIGNAL(SIGWIND, winch);
#endif #endif
#ifdef SIGQUIT #ifdef SIGQUIT
(void) LSIGNAL(SIGQUIT, SIG_IGN); (void) LSIGNAL(SIGQUIT, SIG_IGN);
#endif #endif
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)