diff --git a/bind.c b/bind.c index 285bd39..4db42ce 100644 --- a/bind.c +++ b/bind.c @@ -14,6 +14,7 @@ #include "buffer.h" #include "display.h" +#include "ebind.h" #include "estruct.h" #include "edef.h" #include "exec.h" diff --git a/ebind.c b/ebind.c index deb3559..560b36d 100644 --- a/ebind.c +++ b/ebind.c @@ -1,3 +1,6 @@ +/* ebind.c -- implements ebind.h */ +#include "ebind.h" + /* ebind.c * * Initial default key to function bindings diff --git a/ebind.h b/ebind.h new file mode 100644 index 0000000..af8ed2c --- /dev/null +++ b/ebind.h @@ -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 */ + diff --git a/edef.h b/edef.h index b61b9f0..052ed90 100644 --- a/edef.h +++ b/edef.h @@ -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 */ diff --git a/estruct.h b/estruct.h index 74acaca..0f34e72 100644 --- a/estruct.h +++ b/estruct.h @@ -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 */