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

10
bind.h
View File

@@ -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