diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 2a9935ac5..3449a41be 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -219,7 +219,7 @@ static void ExpandMacroArgs (Macro* M) keepch ('#'); keepstr (Ident); } - } else if (IsQuoteChar (CurC)) { + } else if (IsQuote (CurC)) { mptr = CopyQuotedString (mptr); } else { *mptr++ = CurC; @@ -265,7 +265,7 @@ static int MacroCall (Macro* M) *B++ = CurC; NextChar (); ++ParCount; - } else if (IsQuoteChar (CurC)) { + } else if (IsQuote (CurC)) { B = CopyQuotedString (B); } else if (CurC == ',' || CurC == ')') { if (ParCount == 0) { @@ -488,7 +488,7 @@ static int Pass1 (const char* From, char* To) } keepstr (Ident); } - } else if (IsQuoteChar (CurC)) { + } else if (IsQuote (CurC)) { mptr = CopyQuotedString (mptr); } else if (CurC == '/' && NextC == '*') { keepch (' '); @@ -543,7 +543,7 @@ static int Pass2 (const char* From, char* To) } else { keepstr (Ident); } - } else if (IsQuoteChar(CurC)) { + } else if (IsQuote (CurC)) { mptr = CopyQuotedString (mptr); } else { *mptr++ = CurC; diff --git a/src/cc65/util.c b/src/cc65/util.c index 46e959d19..e2ddc474f 100644 --- a/src/cc65/util.c +++ b/src/cc65/util.c @@ -25,14 +25,6 @@ -int IsQuoteChar (char c) -/* Return true if c is a single or double quote */ -{ - return (c == '"' || c == '\''); -} - - - int powerof2 (unsigned long val) /* Return the exponent if val is a power of two. Return -1 if val is not a * power of two. diff --git a/src/cc65/util.h b/src/cc65/util.h index bfbe1e04e..700f85dba 100644 --- a/src/cc65/util.h +++ b/src/cc65/util.h @@ -17,9 +17,6 @@ -int IsQuoteChar (char c); -/* Return true if c is a single or double quote */ - int powerof2 (unsigned long val); /* Return the exponent if val is a power of two. Return -1 if val is not a * power of two.