fieker-DuValspielwiese
Last change
on this file since 2e385d was
2e385d,
checked in by Michael Orlitzky <michael@…>, 19 months ago
|
*/*.{c,h}: fix invalid function prototypes.
The C99 standard does not allow function prototypes (or inline
definitions) to have an empty argument list, such as
int foo(); /* invalid */
This is caught by -Werror=strict-prototypes, which is likely to become
the default in later versions of GCC and clang. This commit corrects
all(?) of them by adding a "void" parameter.
|
-
Property mode set to
100644
|
File size:
662 bytes
|
Line | |
---|
1 | #ifndef CNTRLC_H |
---|
2 | #define CNTRLC_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* |
---|
7 | * ABSTRACT - interupt and signal handling |
---|
8 | */ |
---|
9 | #include <setjmp.h> |
---|
10 | #include "kernel/mod2.h" |
---|
11 | #include "kernel/structs.h" |
---|
12 | |
---|
13 | EXTERN_VAR jmp_buf si_start_jmpbuf; |
---|
14 | EXTERN_VAR short si_restart; |
---|
15 | EXTERN_VAR int siRandomStart; |
---|
16 | void init_signals(void); |
---|
17 | |
---|
18 | EXTERN_VAR BOOLEAN singular_in_batchmode; |
---|
19 | /* TRUE for child of a fork or started with --batch*/ |
---|
20 | |
---|
21 | /* for deferring the call of m2_end() in SIGTERM handler if necessary */ |
---|
22 | EXTERN_VAR volatile BOOLEAN do_shutdown; |
---|
23 | EXTERN_VAR volatile int defer_shutdown; |
---|
24 | |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.