(keymatch, configkeys): Move to from optlist.h to emp_config.c; static

linkage.
This commit is contained in:
Markus Armbruster 2004-08-30 17:36:50 +00:00
parent 549347defa
commit fd4d6b3108
2 changed files with 11 additions and 13 deletions

View file

@ -109,16 +109,4 @@ extern s_char *timestampfil;
extern s_char *teldir; extern s_char *teldir;
extern s_char *telfil; extern s_char *telfil;
struct keymatch {
s_char *km_key; /* the key */
void (*km_func)(struct keymatch * kp, s_char **av);
/* the function to call if matches */
void *km_data; /* associated data */
int km_flags; /* useful flags */
#define KM_ALLOC 0x01 /* memory allocated */
s_char *km_comment; /* Comment (hopefully useful) */
};
extern struct keymatch configkeys[];
#endif /* _OPTLIST_H_ */ #endif /* _OPTLIST_H_ */

View file

@ -60,6 +60,16 @@
extern char *strdup(); extern char *strdup();
#endif /* NOSTRDUP */ #endif /* NOSTRDUP */
struct keymatch {
s_char *km_key; /* the key */
void (*km_func)(struct keymatch * kp, s_char **av);
/* the function to call if matches */
void *km_data; /* associated data */
int km_flags; /* useful flags */
#define KM_ALLOC 0x01 /* memory allocated */
s_char *km_comment; /* Comment (hopefully useful) */
};
/* Dummy one */ /* Dummy one */
static int emp_config_dummy; static int emp_config_dummy;
@ -73,7 +83,7 @@ static void optiondel(struct keymatch *kp, s_char **av);
static void worldxset(struct keymatch *kp, s_char **av); static void worldxset(struct keymatch *kp, s_char **av);
/* things that can be changed */ /* things that can be changed */
struct keymatch configkeys[] = { static struct keymatch configkeys[] = {
#define EMP_CONFIG_C_OUTPUT #define EMP_CONFIG_C_OUTPUT
#include "econfig-spec.h" #include "econfig-spec.h"
#undef EMP_CONFIG_C_OUTPUT #undef EMP_CONFIG_C_OUTPUT