options parsing madness
I should have reenabled curses before committing an earlier change; it broke compile. Make all optfn_FOO() be static in options.c; fix newly added prototype for optfn_cursesgraphics(); fix conditionals for optfn_palette(), both prototype and function. Also, add missing prototype for a sound routine.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* updates that should accompany your change.
|
||||
*/
|
||||
|
||||
extern int FDECL(optfn_boolean, (int, int, BOOLEAN_P, char *, char *));
|
||||
static int FDECL(optfn_boolean, (int, int, BOOLEAN_P, char *, char *));
|
||||
enum OptType {BoolOpt, CompOpt};
|
||||
enum Y_N {No, Yes};
|
||||
enum Off_On {Off, On};
|
||||
@@ -45,9 +45,9 @@ struct allopt_t {
|
||||
#if defined(NHOPT_PROTO)
|
||||
#define NHOPTB(a, b, c, s, i, n, v, d, al, bp)
|
||||
#define NHOPTC(a, b, c, s, n, v, d, h, al, z) \
|
||||
int FDECL(optfn_##a, (int, int, BOOLEAN_P, char *, char *));
|
||||
static int FDECL(optfn_##a, (int, int, BOOLEAN_P, char *, char *));
|
||||
#define NHOPTP(a, b, c, s, n, v, d, h, al, z) \
|
||||
int FDECL(pfxfn_##a, (int, int, BOOLEAN_P, char *, char *));
|
||||
static int FDECL(pfxfn_##a, (int, int, BOOLEAN_P, char *, char *));
|
||||
|
||||
#elif defined(NHOPT_ENUM)
|
||||
#define NHOPTB(a, b, c, s, i, n, v, d, al, bp) \
|
||||
|
||||
Reference in New Issue
Block a user