mirror of
https://github.com/rfivet/uemacs.git
synced 2024-09-30 01:05:54 -04:00
19 lines
477 B
C
19 lines
477 B
C
#ifndef _NAMES_H_
|
|
#define _NAMES_H_
|
|
|
|
/* Generic uEMACS function pointer type */
|
|
typedef int (*fnp_t)( int, int) ;
|
|
|
|
/* Structure for the name binding table. */
|
|
typedef struct name_bind {
|
|
const char *n_name ; /* name starting with one tag character */
|
|
fnp_t n_func ; /* function the name is bound to */
|
|
} name_bind ;
|
|
|
|
#define bind_name( p) (&(p)->n_name[ 1])
|
|
#define bind_tag( p) (p)->n_name[ 0]
|
|
|
|
extern const name_bind names[] ; /* name to function mapping table */
|
|
|
|
#endif
|