mirror of
https://github.com/cc65/cc65.git
synced 2024-07-10 07:29:05 +00:00
Minor speedup
git-svn-id: svn://svn.cc65.org/cc65/trunk@858 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
e1b0251f04
commit
f3df91260a
@ -165,7 +165,7 @@ void InsertMacro (Macro* M)
|
|||||||
/* Increment the number of macros starting with this char */
|
/* Increment the number of macros starting with this char */
|
||||||
MacroFlagTab[(unsigned)(unsigned char)M->Name[0]]++;
|
MacroFlagTab[(unsigned)(unsigned char)M->Name[0]]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int UndefineMacro (const char* Name)
|
int UndefineMacro (const char* Name)
|
||||||
@ -239,8 +239,8 @@ Macro* FindMacro (const char* Name)
|
|||||||
int IsMacro (const char* Name)
|
int IsMacro (const char* Name)
|
||||||
/* Return true if the given name is the name of a macro, return false otherwise */
|
/* Return true if the given name is the name of a macro, return false otherwise */
|
||||||
{
|
{
|
||||||
return FindMacro(Name) != 0;
|
return MaybeMacro(Name[0]) && FindMacro(Name) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user