mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-20 16:22:38 -05:00
Clarify names interface (only used in bind and input).
This commit is contained in:
parent
c4a5c31d42
commit
cae7222493
1
bind.c
1
bind.c
@ -23,6 +23,7 @@
|
|||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "names.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
|
|
||||||
|
1
edef.h
1
edef.h
@ -33,7 +33,6 @@ extern int flickcode; /* do flicker supression? */
|
|||||||
extern char *modename[]; /* text names of modes */
|
extern char *modename[]; /* text names of modes */
|
||||||
extern char *mode2name[]; /* text names of modes */
|
extern char *mode2name[]; /* text names of modes */
|
||||||
extern char modecode[]; /* letters to represent modes */
|
extern char modecode[]; /* letters to represent modes */
|
||||||
extern struct name_bind names[];/* name to function table */
|
|
||||||
extern int gmode; /* global editor mode */
|
extern int gmode; /* global editor mode */
|
||||||
extern int gflags; /* global control flag */
|
extern int gflags; /* global control flag */
|
||||||
extern int gfcolor; /* global forgrnd color (white) */
|
extern int gfcolor; /* global forgrnd color (white) */
|
||||||
|
@ -561,12 +561,6 @@ struct terminal {
|
|||||||
#define TTbacg (*term.t_setback)
|
#define TTbacg (*term.t_setback)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Structure for the name binding table. */
|
|
||||||
struct name_bind {
|
|
||||||
char *n_name; /* name of function key */
|
|
||||||
int (*n_func)(int, int); /* function name is bound to */
|
|
||||||
};
|
|
||||||
|
|
||||||
/* The editor holds deleted text chunks in the struct kill buffer. The
|
/* The editor holds deleted text chunks in the struct kill buffer. The
|
||||||
* kill buffer is logically a stream of ascii characters, however
|
* kill buffer is logically a stream of ascii characters, however
|
||||||
* due to its unpredicatable size, it gets implemented as a linked
|
* due to its unpredicatable size, it gets implemented as a linked
|
||||||
|
1
input.c
1
input.c
@ -19,6 +19,7 @@
|
|||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "exec.h"
|
#include "exec.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "names.h"
|
||||||
#include "wrapper.h"
|
#include "wrapper.h"
|
||||||
|
|
||||||
#if PKCODE
|
#if PKCODE
|
||||||
|
7
names.c
7
names.c
@ -1,7 +1,10 @@
|
|||||||
|
/* names.c -- implements names.h */
|
||||||
|
#include "names.h"
|
||||||
|
|
||||||
/* Name to function binding table.
|
/* Name to function binding table.
|
||||||
*
|
*
|
||||||
* This table gives the names of all the bindable functions
|
* This table gives the names of all the bindable functions
|
||||||
* end their C function address. These are used for the bind-to-key
|
* and their C function address. These are used for the bind-to-key
|
||||||
* function.
|
* function.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -12,8 +15,6 @@
|
|||||||
#include "eval.h"
|
#include "eval.h"
|
||||||
#include "exec.h"
|
#include "exec.h"
|
||||||
#include "crypt.h"
|
#include "crypt.h"
|
||||||
#include "estruct.h"
|
|
||||||
#include "edef.h"
|
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "isearch.h"
|
#include "isearch.h"
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user