X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=symbol.c;h=f8d8424ff99de0886df08bd03cd459b85cf94d68;hp=b13ef3c52fb1de59ea871a2f1531029cc83f6b79;hb=bae665568253091714d5b32ad634d9024f40ee10;hpb=daf2f61a3664329ae7f9609e1e14da2b8780fd10 diff --git a/symbol.c b/symbol.c index b13ef3c..f8d8424 100644 --- 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; }