/* Warning level */
unsigned WarnLevel = 1;
-/* Messages for internal compiler errors */
-const char _MsgCheckFailed [] =
- "Check failed: `%s' (= %d), file `%s', line %u\n";
-const char _MsgPrecondition [] =
- "Precondition violated: `%s' (= %d), file `%s', line %u\n";
-const char _MsgFail [] =
- "%s, file `%s', line %u\n";
-
-
/* Statistics */
unsigned ErrorCount = 0;
unsigned WarningCount = 0;
/* Warning levels */
extern unsigned WarnLevel;
-/* Messages for internal compiler errors */
-extern const char _MsgCheckFailed [];
-extern const char _MsgPrecondition [];
-extern const char _MsgFail [];
-
/* Statistics */
extern unsigned ErrorCount;
extern unsigned WarningCount;
void Internal (const char* Format, ...);
/* Print a message about an internal compiler error and die. */
-#define CHECK(c) \
- if (!(c)) \
- Internal (_MsgCheckFailed, #c, c, __FILE__, __LINE__)
-
-#define PRECONDITION(c) \
- if (!(c)) \
- Internal (_MsgPrecondition, #c, c, __FILE__, __LINE__)
-
-#define FAIL(s) \
- Internal (_MsgFail, s, __FILE__, __LINE__)
-
/* End of error.h */
/* common */
+#include "check.h"
#include "exprdefs.h"
#include "xmalloc.h"
#include <string.h>
#include <ctype.h>
-#include "../common/bitops.h"
+/* common */
+#include "bitops.h"
+#include "check.h"
+/* ca65 */
#include "ea.h"
#include "error.h"
#include "expr.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "xmalloc.h"
+
+/* ca65 */
#include "error.h"
#include "istack.h"
#include <errno.h>
/* common */
+#include "check.h"
#include "fname.h"
#include "segdefs.h"
#include "version.h"
+/* common */
+#include "check.h"
+
+/* ca65 */
#include "error.h"
#include "scanner.h"
#include "macpack.h"
#include <stdio.h>
#include <string.h>
-#include "../common/hashstr.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "hashstr.h"
+#include "xmalloc.h"
+
+/* ca65 */
#include "condasm.h"
#include "error.h"
#include "istack.h"
/* A define style macro must be called with as many actual parameters
* as there are formal ones. Get the parameter count.
- */
+ */
unsigned Count = M->ParamCount;
/* Skip the current token */
#include <stdio.h>
+/* common */
+#include "check.h"
+
+/* ca65 */
#include "error.h"
#include "expr.h"
#include "scanner.h"
#include <ctype.h>
/* common */
+#include "check.h"
#include "segdefs.h"
#include "xmalloc.h"
-
+
/* cc65 */
#include "error.h"
#include "fragment.h"
return S;
}
-
+
void UseCodeSeg (void)
/* Use the code segment */
/* common */
#include "bitops.h"
+#include "check.h"
/* ca65 */
#include "condasm.h"
#include <sys/stat.h>
/* common */
+#include "check.h"
#include "fname.h"
#include "xmalloc.h"
-
+
/* ca65 */
#include "condasm.h"
#include "error.h"
#include <string.h>
/* common */
-#include "symdefs.h"
+#include "check.h"
#include "hashstr.h"
+#include "symdefs.h"
#include "xmalloc.h"
-
+
/* ca65 */
#include "global.h"
#include "error.h"
}
S = S->List;
}
-
+
/* Done writing imports */
ObjEndImports ();
}
#include <string.h>
-
+
/* common */
+#include "check.h"
#include "xmalloc.h"
-
+
/* ca65 */
#include "error.h"
#include "istack.h"
-#include "../common/filepos.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "filepos.h"
+#include "xmalloc.h"
+
+/* ca65 */
#include "error.h"
#include "expr.h"
#include "scanner.h"
#include <stdlib.h>
#include <stdarg.h>
-#include "../common/cmdline.h"
-
+/* common */
+#include "cmdline.h"
+
+/* cl65 */
#include "global.h"
#include "error.h"
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-const char _MsgCheckFailed [] =
- "Check failed: `%s' (= %d), file `%s', line %u\n";
-const char _MsgPrecondition [] =
- "Precondition violated: `%s' (= %d), file `%s', line %u\n";
-const char _MsgFail [] =
- "%s, file `%s', line %u\n";
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-extern const char _MsgCheckFailed [];
-extern const char _MsgPrecondition [];
-extern const char _MsgFail [];
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
void Internal (const char* Format, ...);
/* Print an internal error message and die */
-#define CHECK(c) \
- if (!(c)) \
- Internal (_MsgCheckFailed, #c, c, __FILE__, __LINE__)
-
-#define PRECONDITION(c) \
- if (!(c)) \
- Internal (_MsgPrecondition, #c, c, __FILE__, __LINE__)
-
-#define FAIL(s) \
- Internal (_MsgFail, s, __FILE__, __LINE__)
-
/* End of error.h */
#include <string.h>
#include <errno.h>
-#include "../common/bitops.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "bitops.h"
+#include "xmalloc.h"
+
+/* ld65 */
#include "error.h"
#include "global.h"
#include "bin.h"
#include <string.h>
-#include "../common/symdefs.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "symdefs.h"
+#include "xmalloc.h"
+
+/* ld65 */
#include "global.h"
#include "error.h"
#include "fileio.h"
/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@musoftware.de */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-const char _MsgCheckFailed [] =
- "Check failed: `%s' (= %d), file `%s', line %u\n";
-const char _MsgPrecondition [] =
- "Precondition violated: `%s' (= %d), file `%s', line %u\n";
-const char _MsgFail [] =
- "%s, file `%s', line %u\n";
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@musoftware.de */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-extern const char _MsgCheckFailed [];
-extern const char _MsgPrecondition [];
-extern const char _MsgFail [];
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
void Internal (const char* Format, ...) attribute((format(printf,1,2)));
/* Print an internal error message and die */
-#define CHECK(c) \
- if (!(c)) \
- Internal (_MsgCheckFailed, #c, c, __FILE__, __LINE__)
-
-#define PRECONDITION(c) \
- if (!(c)) \
- Internal (_MsgPrecondition, #c, c, __FILE__, __LINE__)
-
-#define FAIL(s) \
- Internal (_MsgFail, s, __FILE__, __LINE__)
-
-
+
/* End of error.h */
#include <stdlib.h>
#include <string.h>
-#include "../common/symdefs.h"
-#include "../common/hashstr.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "check.h"
+#include "hashstr.h"
+#include "symdefs.h"
+#include "xmalloc.h"
+
+/* ld65 */
#include "global.h"
#include "error.h"
#include "fileio.h"
/* common */
+#include "check.h"
#include "exprdefs.h"
#include "xmalloc.h"
#include <time.h>
/* common */
+#include "check.h"
#include "version.h"
#include "xmalloc.h"
#include <string.h>
/* common */
+#include "check.h"
#include "exprdefs.h"
#include "hashstr.h"
#include "segdefs.h"
#include "symdefs.h"
#include "xmalloc.h"
-
+
/* ld65 */
#include "error.h"
#include "expr.h"
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-const char _MsgCheckFailed [] =
- "Check failed: `%s' (= %d), file `%s', line %u\n";
-const char _MsgPrecondition [] =
- "Precondition violated: `%s' (= %d), file `%s', line %u\n";
-const char _MsgFail [] =
- "%s, file `%s', line %u\n";
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
-/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-extern const char _MsgCheckFailed [];
-extern const char _MsgPrecondition [];
-extern const char _MsgFail [];
-
-
-
/*****************************************************************************/
/* Code */
/*****************************************************************************/
void Internal (const char* Format, ...) attribute((format(printf,1,2)));
/* Print an internal error message and die */
-#define CHECK(c) \
- if (!(c)) \
- Internal (_MsgCheckFailed, #c, c, __FILE__, __LINE__)
-
-#define PRECONDITION(c) \
- if (!(c)) \
- Internal (_MsgPrecondition, #c, c, __FILE__, __LINE__)
-
-#define FAIL(s) \
- Internal (_MsgFail, s, __FILE__, __LINE__)
-
/* End of error.h */