From: cuz Date: Sun, 24 Jun 2001 16:08:35 +0000 (+0000) Subject: Fixed multi line macro bug X-Git-Tag: V2.12.0~2795 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a988b485952ceb177a212cffdaf1d86446ddfd0;p=cc65 Fixed multi line macro bug git-svn-id: svn://svn.cc65.org/cc65/trunk@772 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/scanner.c b/src/cc65/scanner.c index 27b300ceb..2009826ea 100644 --- a/src/cc65/scanner.c +++ b/src/cc65/scanner.c @@ -178,7 +178,7 @@ static int SkipWhite (void) } Preprocess (); } - if (CurC == ' ' || CurC == '\r') { + if (IsSpace (CurC)) { NextChar (); } else { return 1; @@ -403,7 +403,7 @@ void NextToken (void) { ident token; - /* We have to skip white space here before shifting tokens, since the + /* We have to skip white space here before shifting tokens, since the * tokens and the current line info is invalid at startup and will get * initialized by reading the first time from the file. Remember if * we were at end of input and handle that later. @@ -420,7 +420,7 @@ void NextToken (void) NextTok.LI = UseLineInfo (GetCurLineInfo ()); /* Now handle end of input. */ - if (GotEOF) { + if (GotEOF) { /* End of file reached */ NextTok.Tok = TOK_CEOF; return;