clarify ebind dependencies (only needed by bind).

This commit is contained in:
Renaud 2013-05-31 13:04:52 +08:00
parent 2ed4446758
commit c4a5c31d42
5 changed files with 12 additions and 7 deletions

1
bind.c
View File

@ -14,6 +14,7 @@
#include "buffer.h"
#include "display.h"
#include "ebind.h"
#include "estruct.h"
#include "edef.h"
#include "exec.h"

View File

@ -1,3 +1,6 @@
/* ebind.c -- implements ebind.h */
#include "ebind.h"
/* ebind.c
*
* Initial default key to function bindings

8
ebind.h Normal file
View File

@ -0,0 +1,8 @@
/* Structure for the table of initial key bindings. */
struct key_tab {
int k_code; /* Key code */
int (*k_fp)(int, int); /* Routine to handle it */
};
extern struct key_tab keytab[]; /* key bind to functions table */

1
edef.h
View File

@ -33,7 +33,6 @@ extern int flickcode; /* do flicker supression? */
extern char *modename[]; /* text names of modes */
extern char *mode2name[]; /* text names of modes */
extern char modecode[]; /* letters to represent modes */
extern struct key_tab keytab[]; /* key bind to functions table */
extern struct name_bind names[];/* name to function table */
extern int gmode; /* global editor mode */
extern int gflags; /* global control flag */

View File

@ -561,12 +561,6 @@ struct terminal {
#define TTbacg (*term.t_setback)
#endif
/* Structure for the table of initial key bindings. */
struct key_tab {
int k_code; /* Key code */
int (*k_fp)(int, int); /* Routine to handle it */
};
/* Structure for the name binding table. */
struct name_bind {
char *n_name; /* name of function key */