]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/haiku_support.cc (gui_abort): Get rid of extern "C" declarations.
authorPo Lu <luangruo@yahoo.com>
Thu, 21 Apr 2022 12:41:09 +0000 (12:41 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 21 Apr 2022 12:41:26 +0000 (12:41 +0000)
src/haiku_support.cc

index 75c68f5541ce90c3a93c1eaed94847e8d073d1b6..2ec536729f6d8d0ddb53ee38a4bc9626ade55c49 100644 (file)
@@ -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