X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=symbol.c;h=c2da09abece5cd67a0eaf73cc26f72a20764b7f4;hb=721ff28e6654c3841990312ed33a70be8d5df22b;hp=2635e7a3c369c71d636f905dd019f4bb897f3762;hpb=cbc8347d4ffea164ca05b03e4e3be39945be8777;p=rmac diff --git a/symbol.c b/symbol.c index 2635e7a..c2da09a 100644 --- a/symbol.c +++ b/symbol.c @@ -103,6 +103,9 @@ SYM * NewSymbol(uint8_t * name, int type, int envno) symbol->sorder = NULL; symbol->uid = currentUID++; + // Record filename the symbol is defined (for now only used by macro error reporting) + symbol->cfileno = cfileno; + // Install symbol in the symbol table int hash = HashSymbol(name, envno); symbol->snext = symbolTable[hash];