uemacs/names.h

18 lines
411 B
C

#ifndef _NAMES_H_
#define _NAMES_H_
#include "fnp_t.h"
/* 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 table */
#endif