Use IsQuote instead of IsQuoteChar
git-svn-id: svn://svn.cc65.org/cc65/trunk@596 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
9c02fb3ec0
commit
46a2a610e1
3 changed files with 4 additions and 15 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue