1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-09 05:20:36 -04:00
elinks/src/osdep/signals.h
Witold Filipczyk 1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00

30 lines
598 B
C

/* Signals handling. */
#ifndef EL__OSDEP_SIGNALS_H
#define EL__OSDEP_SIGNALS_H
#ifdef __cplusplus
extern "C" {
#endif
struct terminal;
#define NUM_SIGNALS 32
extern volatile int critical_section;
void install_signal_handler(int, void (*)(void *), void *, int);
void set_sigcld(void);
void sig_ctrl_c(struct terminal *term);
void clear_signal_mask_and_handlers(void);
void uninstall_alarm(void);
void handle_basic_signals(struct terminal *term);
void unhandle_terminal_signals(struct terminal *term);
int check_signals(void);
#ifdef __cplusplus
}
#endif
#endif /* EL__LOWLEVEL_SIGNALS_H */