From f3df91260a5755cfeb2f62c40f8deb0fe23eacd3 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 7 Sep 2001 07:04:54 +0000 Subject: [PATCH] Minor speedup git-svn-id: svn://svn.cc65.org/cc65/trunk@858 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/macrotab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc65/macrotab.c b/src/cc65/macrotab.c index 905693797..45a290fe7 100644 --- a/src/cc65/macrotab.c +++ b/src/cc65/macrotab.c @@ -165,7 +165,7 @@ void InsertMacro (Macro* M) /* Increment the number of macros starting with this char */ MacroFlagTab[(unsigned)(unsigned char)M->Name[0]]++; } - + int UndefineMacro (const char* Name) @@ -239,8 +239,8 @@ Macro* FindMacro (const char* Name) int IsMacro (const char* Name) /* 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; +} -- 2.39.5