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 ('#');
|
keepch ('#');
|
||||||
keepstr (Ident);
|
keepstr (Ident);
|
||||||
}
|
}
|
||||||
} else if (IsQuoteChar (CurC)) {
|
} else if (IsQuote (CurC)) {
|
||||||
mptr = CopyQuotedString (mptr);
|
mptr = CopyQuotedString (mptr);
|
||||||
} else {
|
} else {
|
||||||
*mptr++ = CurC;
|
*mptr++ = CurC;
|
||||||
|
@ -265,7 +265,7 @@ static int MacroCall (Macro* M)
|
||||||
*B++ = CurC;
|
*B++ = CurC;
|
||||||
NextChar ();
|
NextChar ();
|
||||||
++ParCount;
|
++ParCount;
|
||||||
} else if (IsQuoteChar (CurC)) {
|
} else if (IsQuote (CurC)) {
|
||||||
B = CopyQuotedString (B);
|
B = CopyQuotedString (B);
|
||||||
} else if (CurC == ',' || CurC == ')') {
|
} else if (CurC == ',' || CurC == ')') {
|
||||||
if (ParCount == 0) {
|
if (ParCount == 0) {
|
||||||
|
@ -488,7 +488,7 @@ static int Pass1 (const char* From, char* To)
|
||||||
}
|
}
|
||||||
keepstr (Ident);
|
keepstr (Ident);
|
||||||
}
|
}
|
||||||
} else if (IsQuoteChar (CurC)) {
|
} else if (IsQuote (CurC)) {
|
||||||
mptr = CopyQuotedString (mptr);
|
mptr = CopyQuotedString (mptr);
|
||||||
} else if (CurC == '/' && NextC == '*') {
|
} else if (CurC == '/' && NextC == '*') {
|
||||||
keepch (' ');
|
keepch (' ');
|
||||||
|
@ -543,7 +543,7 @@ static int Pass2 (const char* From, char* To)
|
||||||
} else {
|
} else {
|
||||||
keepstr (Ident);
|
keepstr (Ident);
|
||||||
}
|
}
|
||||||
} else if (IsQuoteChar(CurC)) {
|
} else if (IsQuote (CurC)) {
|
||||||
mptr = CopyQuotedString (mptr);
|
mptr = CopyQuotedString (mptr);
|
||||||
} else {
|
} else {
|
||||||
*mptr++ = CurC;
|
*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)
|
int powerof2 (unsigned long val)
|
||||||
/* Return the exponent if val is a power of two. Return -1 if val is not a
|
/* Return the exponent if val is a power of two. Return -1 if val is not a
|
||||||
* power of two.
|
* 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);
|
int powerof2 (unsigned long val);
|
||||||
/* Return the exponent if val is a power of two. Return -1 if val is not a
|
/* Return the exponent if val is a power of two. Return -1 if val is not a
|
||||||
* power of two.
|
* power of two.
|
||||||
|
|
Loading…
Add table
Reference in a new issue