+/* common */
+#include "attrib.h"
+
+
+
/*****************************************************************************/
/* Data */
/*****************************************************************************/
-void Warning (const char* Format, ...);
+void Warning (const char* Format, ...) attribute((format(printf,1,2)));
/* Print a warning message */
-void Error (const char* Format, ...);
+void Error (const char* Format, ...) attribute((format(printf,1,2)));
/* Print an error message and die */
-void Internal (const char* Format, ...);
+void Internal (const char* Format, ...) attribute((format(printf,1,2)));
/* Print an internal error message and die */
#define CHECK(c) \
-#include "../common/exprdefs.h"
-#include "../common/xmalloc.h"
-
+/* common */
+#include "exprdefs.h"
+#include "xmalloc.h"
+
+/* ld65 */
#include "global.h"
#include "error.h"
#include "fileio.h"
* which in turn means, that we have a circular reference.
*/
if (ExportHasMark (E)) {
- Error ("Circular reference for symbol `%s', %s(%u)",
+ Error ("Circular reference for symbol `%s', %s(%lu)",
E->Name, E->Obj->Files [E->Pos.Name], E->Pos.Line);
Const = 0;
} else {
# Default for the compiler lib search path as compiler define
CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
-CFLAGS = -g -O2 -Wall $(CDEFS)
+CFLAGS = -g -O2 -Wall -I../common $(CDEFS)
CC=gcc
LDFLAGS=