/*****************************************************************************/
/* */
-/* global.c */
+/* error.c */
/* */
/* Error handling for the ld65 linker */
/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+
+/* common */
+#include "cmdline.h"
+/* ld65 */
#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 */
/*****************************************************************************/
{
va_list ap;
va_start (ap, Format);
- fprintf (stderr, "Warning: ");
+ fprintf (stderr, "%s: Warning: ", ProgName);
vfprintf (stderr, Format, ap);
putc ('\n', stderr);
va_end (ap);
{
va_list ap;
va_start (ap, Format);
- fprintf (stderr, "Error: ");
+ fprintf (stderr, "%s: Error: ", ProgName);
vfprintf (stderr, Format, ap);
putc ('\n', stderr);
va_end (ap);
{
va_list ap;
va_start (ap, Format);
- fprintf (stderr, "Internal error: ");
+ fprintf (stderr, "%s: Internal error: ", ProgName);
vfprintf (stderr, Format, ap);
putc ('\n', stderr);
va_end (ap);
}
-
+