home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / editor / j414src.arc / KEYMAPS.H < prev    next >
C/C++ Source or Header  |  1989-10-10  |  1KB  |  40 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. struct keymap {
  9.     int        Type;        /* keymap type */
  10.     char        *Name;        /* keymap name */
  11.     data_obj    **k_keys;    /* keys array */
  12.     char        k_alloc_p;    /* whether we alloced k_keys */
  13. };
  14.  
  15. extern data_obj    *MainKeys[NCHARS],
  16.         *EscKeys[NCHARS],
  17.         *CtlxKeys[NCHARS],
  18.         *MiscKeys[NCHARS];
  19.  
  20. #ifdef MAC                    /* used in About Jove... */
  21. # define F_MAINMAP '\001'
  22. # define F_PREF1MAP '\002'
  23. # define F_PREF2MAP '\003'
  24. #endif
  25.  
  26. extern int
  27.     this_cmd,    /* ... */
  28.     last_cmd;    /* last command ... to implement appending
  29.                to kill buffer */
  30.  
  31. extern void
  32.     BindSomething proto((struct data_obj *(*proc)(), struct keymap *map)),
  33.     BindWMap proto((struct keymap *map, int lastkey, struct data_obj *cmd)),
  34.     DescMap proto((struct keymap *map, char *pref)),
  35.     DescWMap proto((struct keymap *map, int key)),
  36.     dispatch proto((int c));
  37.  
  38. extern int
  39.     PrefChar proto((int c));    /* Is `c' a prefix character */
  40.