mirror of
https://github.com/rfivet/uemacs.git
synced 2025-11-23 11:41:15 -05:00
Cache the result of function to name mapping lookup when doing keycode to function mapping lookup.
This commit is contained in:
9
input.h
9
input.h
@@ -3,10 +3,11 @@
|
||||
|
||||
#include "names.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
STOP, PLAY, RECORD
|
||||
} kbdstate ;
|
||||
|
||||
|
||||
extern kbdstate kbdmode ; /* current keyboard macro mode */
|
||||
extern int lastkey ; /* last keystoke */
|
||||
extern int kbdrep ; /* number of repetitions */
|
||||
@@ -28,9 +29,9 @@ int newmlargt( char **outbufref, const char *prompt, int size) ;
|
||||
int ectoc( int c) ;
|
||||
|
||||
/* Look up in names to function association table */
|
||||
const name_bind *fncmatch( char *) ;
|
||||
const name_bind *getname( void) ;
|
||||
const char *getfncname( fnp_t func) ;
|
||||
const name_bind *fncmatch( char *name) ; /* by name */
|
||||
const name_bind *getname( void) ; /* interactively */
|
||||
const name_bind *getfncnb( fnp_t func) ; /* by function */
|
||||
|
||||
int tgetc( void) ;
|
||||
int get1key( void) ;
|
||||
|
||||
Reference in New Issue
Block a user