Added a more generic way to push sources that deliver a token stream
independent of the actual input from the file. Change macro handling to use the new input stack. Fixed an error in FreeIf: If an unexpected .ENDIF was reached, the assembler started an endless loop printing error messages. git-svn-id: svn://svn.cc65.org/cc65/trunk@24 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "scanner.h"
|
||||
#include "nexttok.h"
|
||||
#include "error.h"
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@ void ErrorMsg (const FilePos* Pos, unsigned ErrNum, va_list ap)
|
||||
"CPU not supported",
|
||||
"Counter underflow",
|
||||
"Undefined label",
|
||||
"Open `%s<>",
|
||||
};
|
||||
|
||||
fprintf (stderr, "%s(%lu): Error #%u: ",
|
||||
@@ -257,7 +258,7 @@ void Fatal (unsigned FatNum, ...)
|
||||
"Cannot open listing file: %s",
|
||||
"Cannot write to listing file: %s",
|
||||
"Cannot read from listing file: %s",
|
||||
"Macro nesting too deep",
|
||||
"Too many nested constructs",
|
||||
"Too many symbols",
|
||||
};
|
||||
va_list ap;
|
||||
|
||||
Reference in New Issue
Block a user