From: cuz Date: Fri, 5 Jan 2001 19:26:25 +0000 (+0000) Subject: Use IsQuote instead of IsQuoteChar X-Git-Tag: V2.12.0~2951 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46a2a610e1891da8bded60e7cccfeeee69020a6d;p=cc65 Use IsQuote instead of IsQuoteChar git-svn-id: svn://svn.cc65.org/cc65/trunk@596 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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.