]> Shamusworld >> Repos - rmac/blobdiff - symbol.c
Forgot minor release number bump. :-P
[rmac] / symbol.c
index b13ef3c52fb1de59ea871a2f1531029cc83f6b79..f8d8424ff99de0886df08bd03cd459b85cf94d68 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -11,6 +11,7 @@
 #include "procln.h"
 #include "error.h"
 
+
 // Macros
 #define NBUCKETS 256                                   // Number of hash buckets (power of 2)
 
@@ -150,13 +151,14 @@ SYM * lookup(char * name, int type, int envno)
                if (symbol->stype == type                       // Type, envno and name must match
                        && symbol->senv  == envno
                        && *name == *symbol->sname              // Fast check for first character
-                       && !strcmp(name, symbol->sname))
+                       && !strcmp(name, symbol->sname))        // More expensive check
                        break;
 
                symbol = symbol->snext;
        }
 
-       return symbol;                                                  // Return NULL or matching symbol
+       // Return NULL or matching symbol
+       return symbol;
 }