/[qemacs]/qemacs/qe.h
ViewVC logotype

Diff of /qemacs/qe.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by chqrlie, Tue May 10 18:53:03 2005 UTC revision 1.19 by chqrlie, Wed May 11 12:22:51 2005 UTC
# Line 931  typedef struct CmdDef { Line 931  typedef struct CmdDef {
931  } CmdDef;  } CmdDef;
932    
933  /* new command macros */  /* new command macros */
934  #define CMD_(key, key_alt, name, func, args) { key, key_alt, name "\0" args, { (void *)func } },  #define CMD_(key, key_alt, name, func, args) { key, key_alt, name "\0" args, { (void *)(func) }, 0 },
935  #define CMDV(key, key_alt, name, func, val, args) { key, key_alt, name "\0" args, { (void *)func }, (void *)val },  #define CMDV(key, key_alt, name, func, val, args) { key, key_alt, name "\0" args, { (void *)(func) }, (void *)(val) },
936    
937  /* old macros for compatibility */  /* old macros for compatibility */
938  #define CMD0(key, key_alt, name, func) { key, key_alt, name "\0", { (void *)func } },  #define CMD0(key, key_alt, name, func) { key, key_alt, name "\0", { (void *)(func) } },
939  #define CMD1(key, key_alt, name, func, val) { key, key_alt, name "\0v", { (void *)func }, (void*)(val) },  #define CMD1(key, key_alt, name, func, val) { key, key_alt, name "\0v", { (void *)(func) }, (void*)(val) },
940  #define CMD_DEF_END { 0, 0, NULL, }  #define CMD_DEF_END { 0, 0, NULL, { NULL }, 0 }
941    
942  void qe_register_mode(ModeDef *m);  void qe_register_mode(ModeDef *m);
943  void qe_register_cmd_table(CmdDef *cmds, const char *mode);  void qe_register_cmd_table(CmdDef *cmds, const char *mode);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26