Fix a problem with conditional assembly: The scanner has to be switched into

raw token mode when skipping a section of input because otherwise pseudo
functions may trigger errors.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5033 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-06-05 14:28:56 +00:00
parent 6a56201046
commit 6a48359d23
3 changed files with 115 additions and 107 deletions

View File

@@ -42,6 +42,7 @@
#include "strbuf.h"
/* ca65 */
#include "condasm.h"
#include "error.h"
#include "expr.h"
#include "global.h"
@@ -661,8 +662,10 @@ void NextTok (void)
/* Get the next raw token */
NextRawTok ();
/* In raw mode, pass the token unchanged */
if (RawMode == 0) {
/* In raw mode, or when output is suppressed via conditional assembly,
* pass the token unchanged.
*/
if (RawMode == 0 && IfCond) {
/* Execute token handling functions */
switch (CurTok.Tok) {