emacs-diffs
[Top][All Lists]
Advanced

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

master 6a50ce949b: * src/haiku_support.cc (gui_abort): Get rid of extern


From: Po Lu
Subject: master 6a50ce949b: * src/haiku_support.cc (gui_abort): Get rid of extern "C" declarations.
Date: Thu, 21 Apr 2022 08:41:45 -0400 (EDT)

branch: master
commit 6a50ce949b6d15a40bce44ea1bfd313b086130f8
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * src/haiku_support.cc (gui_abort): Get rid of extern "C" declarations.
---
 src/haiku_support.cc | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index 75c68f5541..2ec536729f 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -173,7 +173,7 @@ static bool drag_and_drop_in_progress;
    Rectifying that problem is simple: all code in a looper callback
    must lock the child frame data with this macro instead.
 
-   IOW, If some other code is already running with the child frame
+   IOW, if some other code is already running with the child frame
    lock held, don't interfere: wait until it's finished before
    continuing.  */
 #define CHILD_FRAME_LOCK_INSIDE_LOOPER_CALLBACK                \
@@ -189,13 +189,7 @@ static bool drag_and_drop_in_progress;
    port, so it's probably here to stay.  */
 extern status_t get_subpixel_antialiasing (bool *);
 
-extern "C"
-{
-  extern _Noreturn void emacs_abort (void);
-  /* Also defined in haikuterm.h.  */
-  extern void be_app_quit (void);
-}
-
+/* The ID of the thread the BApplication is running in.  */
 static thread_id app_thread;
 
 _Noreturn void
@@ -205,7 +199,7 @@ gui_abort (const char *msg)
   fprintf (stderr, "Under Haiku, Emacs cannot recover from errors in GUI 
code\n");
   fprintf (stderr, "App Server disconnects usually manifest as bitmap "
           "initialization failures or lock failures.");
-  emacs_abort ();
+  abort ();
 }
 
 struct be_popup_menu_data



reply via email to

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