diff --git a/include/cc65.h b/include/cc65.h index 95de8e4ab..9506cf107 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 980045a63..7df2db60f 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 43f4ab004..af0d8c314 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 cc9610ddf..63f234962 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 665b70863..92ed745a0 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); }