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:
269 bytes
|
Line | |
---|
1 | #ifndef SIRANDOM_H |
---|
2 | #define SIRANDOM_H |
---|
3 | #ifdef __cplusplus |
---|
4 | extern "C" { |
---|
5 | #endif |
---|
6 | EXTERN_VAR int siSeed; |
---|
7 | int siRand(void); |
---|
8 | |
---|
9 | typedef int (*siRandProc)(void); |
---|
10 | typedef int (*siRandProc1)(int); |
---|
11 | int siRandNext(int); |
---|
12 | int siRandPlus1(int); |
---|
13 | |
---|
14 | |
---|
15 | #ifdef __cplusplus |
---|
16 | } |
---|
17 | #endif |
---|
18 | |
---|
19 | #endif |
---|
20 | // |
---|
Note: See
TracBrowser
for help on using the repository browser.