1
0
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:
2021-07-20 17:34:35 +08:00
parent 4f90e847f8
commit c093b7064b
9 changed files with 254 additions and 259 deletions

View File

@@ -175,7 +175,7 @@ const name_bind *fncmatch( char *fname) {
}
const char *getfncname( fnp_t func) {
const name_bind *getfncnb( fnp_t func) {
const name_bind *nptr ; /* pointer into the name binding table */
/* skim through the table, looking for a match */
@@ -183,7 +183,7 @@ const char *getfncname( fnp_t func) {
if (nptr->n_func == func)
break ;
return bind_name( nptr) ;
return nptr ;
}
/*