Blob Blame History Raw
From a139c4057c4bcea6518ab3dc9c23db0171d2d4c5 Mon Sep 17 00:00:00 2001
From: mc78 <mc78@outlook.de>
Date: Sun, 17 Nov 2019 13:13:43 +0100
Subject: [PATCH 103/170] Removed CC65_ prefixes from exit statements in abort
 and assert code as well from definition

---
 include/cc65.h                       | 4 ++--
 libsrc/common/_afailed.c             | 2 +-
 libsrc/common/abort.c                | 2 +-
 libsrc/geos-common/common/_afailed.c | 2 +-
 libsrc/geos-common/common/abort.c    | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/cc65.h b/include/cc65.h
index 95de8e4a..9506cf10 100644
--- a/include/cc65.h
+++ b/include/cc65.h
@@ -41,8 +41,8 @@
    constants defined in stdlib.h. The values 0 and 1 are still 
    reserved for EXIT_SUCCESS and EXIT_FAILURE and should not be
    redefined */ 
-#define CC65_EXIT_AFAILED 2
-#define CC65_EXIT_ABORT 3
+#define EXIT_ASSERT 2
+#define EXIT_ABORT 3
 
 
 /*****************************************************************************/
diff --git a/libsrc/common/_afailed.c b/libsrc/common/_afailed.c
index 980045a6..7df2db60 100644
--- a/libsrc/common/_afailed.c
+++ b/libsrc/common/_afailed.c
@@ -17,5 +17,5 @@ void __fastcall__ _afailed (char* file, unsigned line)
 {
     raise (SIGABRT);
     fprintf (stderr, "ASSERTION FAILED IN %s(%u)\n", file, line);
-    exit (CC65_EXIT_AFAILED);
+    exit (EXIT_ASSERT);
 }
diff --git a/libsrc/common/abort.c b/libsrc/common/abort.c
index 43f4ab00..af0d8c31 100644
--- a/libsrc/common/abort.c
+++ b/libsrc/common/abort.c
@@ -16,7 +16,7 @@ void abort (void)
 {
     raise (SIGABRT);
     fputs ("ABNORMAL PROGRAM TERMINATION\n", stderr);
-    exit (CC65_EXIT_ABORT);
+    exit (EXIT_ABORT);
 }
 
 
diff --git a/libsrc/geos-common/common/_afailed.c b/libsrc/geos-common/common/_afailed.c
index cc9610dd..63f23496 100644
--- a/libsrc/geos-common/common/_afailed.c
+++ b/libsrc/geos-common/common/_afailed.c
@@ -29,5 +29,5 @@ void _afailed (char* file, unsigned line)
 
     DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT);
 
-    exit (CC65_EXIT_AFAILED);
+    exit (EXIT_ASSERT);
 }
diff --git a/libsrc/geos-common/common/abort.c b/libsrc/geos-common/common/abort.c
index 665b7086..92ed745a 100644
--- a/libsrc/geos-common/common/abort.c
+++ b/libsrc/geos-common/common/abort.c
@@ -12,5 +12,5 @@ void abort (void)
 {
     ExitTurbo();
     DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT);
-    exit(CC65_EXIT_ABORT);
+    exit(EXIT_ABORT);
 }
-- 
2.26.0