tin  2.4.2
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.2.tar.xz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

signal.c File Reference
#include "tin.h"
#include "tcurses.h"
#include "trace.h"
#include "version.h"
Include dependency graph for signal.c:

Go to the source code of this file.


#define RESTORE_HANDLER(x, y)   signal(x, y)


static const char * signal_name (int code)
static void _CDECL signal_handler (SIG_ARGS)
void allow_resize (t_bool allow)
void handle_resize (t_bool repaint)
static void _CDECL signal_handler (int sig)
void set_signal_catcher (int flag)
void set_signal_handlers (void)
t_bool set_win_size (int *num_lines, int *num_cols)
void set_noteslines (int num_lines)


int signal_context = cMain
int input_context = cNone
int need_resize = cNo
struct {
   int   code
   const char *   name
signal_list []
RETSIGTYPE(*)(SIG_ARGS) sigdisp (signum, func)

Macro Definition Documentation


#define RESTORE_HANDLER (   x,
)    signal(x, y)

Referenced by signal_handler().

Function Documentation

◆ allow_resize()

void allow_resize ( t_bool  allow)

Definition at line 200 of file signal.c.

References signal_handler().

◆ handle_resize()



Referenced by set_signal_handlers().

◆ set_noteslines()

void set_noteslines ( int  num_lines)

Definition at line 636 of file signal.c.

References t_config::beginner_level, INDEX_TOP, MINI_HELP_LINES, NOTESLINES, and tinrc.

Referenced by config_page(), set_win_size(), and toggle_mini_help().

◆ set_signal_catcher()

void set_signal_catcher ( int  flag)

Definition at line 523 of file signal.c.

References sigdisp, and signal_handler().

Referenced by feed_articles(), invoke_cmd(), and pipe_part().

◆ set_signal_handlers()

void set_signal_handlers ( void  )

Definition at line 538 of file signal.c.

References ARRAY_SIZE, code, n, RETSIGTYPE(), sigdisp, signal_handler(), signal_list, and TRUE.

Referenced by main().

◆ set_win_size()

t_bool set_win_size ( int *  num_lines,
int *  num_cols 

Definition at line 579 of file signal.c.

References FALSE, init_screen_array(), set_noteslines(), and TRUE.

Referenced by handle_resize(), and setup_screen().

◆ signal_handler() [1/2]

static void _CDECL signal_handler ( SIG_ARGS  )

◆ signal_handler() [2/2]

◆ signal_name()

static const char * signal_name ( int  code)

Definition at line 224 of file signal.c.

References ARRAY_SIZE, code, n, name, and signal_list.

Referenced by signal_handler().

Variable Documentation

◆ code

◆ input_context

int input_context = cNone

Definition at line 103 of file signal.c.

Referenced by handle_resize(), prompt_continue(), prompt_slk_response(), prompt_yn(), and tin_getline().

◆ name

const char* name

Definition at line 114 of file signal.c.

Referenced by signal_name().

◆ need_resize

int need_resize = cNo

Definition at line 104 of file signal.c.

Referenced by invoke_cmd(), read_overview(), and signal_handler().


◆ sigdisp

RETSIGTYPE(*)(SIG_ARGS) sigdisp(signum, func)

Definition at line 171 of file signal.c.

Referenced by asfail(), set_signal_catcher(), and set_signal_handlers().

◆ signal_context

◆ signal_list

const { ... } signal_list[]

Referenced by set_signal_handlers(), and signal_name().