File: main.h

package info (click to toggle)
netkit-ftp 0.17-31
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,296 kB
  • ctags: 1,723
  • sloc: ansic: 5,716; makefile: 99; sh: 8
file content (20 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <obstack.h>
#include <signal.h>

extern int suppressint;
extern volatile int intpending;
extern int intrnewline;
extern struct obstack mainobstack;
extern struct obstack lineobstack;

#ifdef __GNUC__
void intr(int) __attribute__ ((noreturn));
#else
void intr(int);
#endif

#define INTOFF suppressint++;
#define INTON do { if (--suppressint == 0 && intpending) intr(SIGINT); } \
	      while(0)
#define CHECKINT do { if (suppressint == 1 && intpending) { \
		 suppressint = 0; intr(SIGINT); }} while(0)