qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-devel] Changes to qemacs/qe.h


From: Charlie Gordon
Subject: [Qemacs-devel] Changes to qemacs/qe.h
Date: Wed, 11 May 2005 08:22:51 -0400

Index: qemacs/qe.h
diff -u qemacs/qe.h:1.18 qemacs/qe.h:1.19
--- qemacs/qe.h:1.18    Tue May 10 18:53:03 2005
+++ qemacs/qe.h Wed May 11 12:22:51 2005
@@ -931,13 +931,13 @@
 } CmdDef;
 
 /* new command macros */
-#define CMD_(key, key_alt, name, func, args) { key, key_alt, name "\0" args, { 
(void *)func } },
-#define CMDV(key, key_alt, name, func, val, args) { key, key_alt, name "\0" 
args, { (void *)func }, (void *)val },
+#define CMD_(key, key_alt, name, func, args) { key, key_alt, name "\0" args, { 
(void *)(func) }, 0 },
+#define CMDV(key, key_alt, name, func, val, args) { key, key_alt, name "\0" 
args, { (void *)(func) }, (void *)(val) },
 
 /* old macros for compatibility */
-#define CMD0(key, key_alt, name, func) { key, key_alt, name "\0", { (void 
*)func } },
-#define CMD1(key, key_alt, name, func, val) { key, key_alt, name "\0v", { 
(void *)func }, (void*)(val) },
-#define CMD_DEF_END { 0, 0, NULL, }
+#define CMD0(key, key_alt, name, func) { key, key_alt, name "\0", { (void 
*)(func) } },
+#define CMD1(key, key_alt, name, func, val) { key, key_alt, name "\0v", { 
(void *)(func) }, (void*)(val) },
+#define CMD_DEF_END { 0, 0, NULL, { NULL }, 0 }
 
 void qe_register_mode(ModeDef *m);
 void qe_register_cmd_table(CmdDef *cmds, const char *mode);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]