From 9565f41381285d06814c993c75148d8f49381750 Mon Sep 17 00:00:00 2001 From: acqn Date: Fri, 19 Aug 2022 13:27:56 +0800 Subject: [PATCH] Improved Diagnostic with #include. --- src/cc65/preproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 76a625f53..f1328c4d0 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -1254,7 +1254,7 @@ static void DoInclude (void) break; default: - PPError ("'\"' or '<' expected"); + PPError ("#include expects \"FILENAME\" or "); goto Done; } NextChar (); @@ -1274,7 +1274,7 @@ static void DoInclude (void) CheckExtraTokens ("include"); /* Open the include file */ OpenIncludeFile (SB_GetConstBuf (&Filename), IT); - } else if (CurC == '\0') { + } else { /* No terminator found */ PPError ("#include expects \"FILENAME\" or "); }