qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs qe.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs qe.c
Date: Tue, 22 Apr 2008 08:18:49 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        08/04/22 08:18:49

Modified files:
        .              : qe.c 

Log message:
        small code reordering, added disabled exit_all_modules

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.88&r2=1.89

Patches:
Index: qe.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/qe.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -b -r1.88 -r1.89
--- qe.c        22 Apr 2008 08:15:04 -0000      1.88
+++ qe.c        22 Apr 2008 08:18:48 -0000      1.89
@@ -6558,12 +6558,6 @@
     }
 }
 
-void do_describe_key_briefly(EditState *s)
-{
-    put_status(s, "Describe key: ");
-    key_ctx.describe_key = 1;
-}
-
 void do_help_for_help(__unused__ EditState *s)
 {
     EditBuffer *b;
@@ -6585,6 +6579,12 @@
     }
 }
 
+void do_describe_key_briefly(EditState *s)
+{
+    put_status(s, "Describe key: ");
+    key_ctx.describe_key = 1;
+}
+
 #ifdef CONFIG_WIN32
 
 void qe_event_init(void)
@@ -7597,6 +7597,28 @@
     }
 }
 
+#if 0
+static void exit_all_modules(void)
+{
+    /* CG: Should call in reverse order! */
+    int (*exitcall)(void);
+    int (**ptr)(void);
+
+    ptr = (int (**)(void))(void *)&__exitcall_first;
+    for (;;) {
+#if defined(__BOUNDS_CHECKING_ON)
+        ptr = (void **)((long)ptr + (2 * sizeof(void *)));
+#else
+        ptr++;
+#endif
+        exitcall = *ptr;
+        if (exitcall == NULL)
+            break;
+        (*exitcall)();
+    }
+}
+#endif
+
 #else
 
 #ifdef CONFIG_TINY




reply via email to

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