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:
10
bind.h
10
bind.h
@@ -1,7 +1,7 @@
|
||||
#ifndef _BIND_H_
|
||||
#define _BIND_H_
|
||||
|
||||
#include "fnp_t.h"
|
||||
#include "ebind.h"
|
||||
|
||||
#define APROP 1 /* Add code for Apropos command */
|
||||
|
||||
@@ -9,13 +9,17 @@
|
||||
int apro( int f, int n) ;
|
||||
#endif
|
||||
|
||||
/* uEMACS functions */
|
||||
int help( int f, int n) ;
|
||||
int deskey( int f, int n) ;
|
||||
int bindtokey( int f, int n) ;
|
||||
int unbindkey( int f, int n) ;
|
||||
int desbind( int f, int n) ;
|
||||
|
||||
int startup( const char *fname) ;
|
||||
fnp_t getbind( unsigned keycode) ;
|
||||
const char *transbind( char *skey) ;
|
||||
|
||||
/* find a key to function association in the key to function mapping table */
|
||||
key_tab *getkeybind( unsigned keycode) ; /* by key code */
|
||||
const char *transbind( char *skey) ; /* by string representation of key */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user