
I did this in parser-smi.y to get the line numbers:
--- parser-smi.y 20 Mar 2002 16:49:49 -0000 1.169 +++ parser-smi.y 21 Apr 2002 17:38:11 -0000 @@ -1339,6 +1340,10 @@ modulePtr = findModuleByName($3); if (!modulePtr) { modulePtr = loadModule($3); + /*XXX duplicate error, but with line # */ + if (!modulePtr) + smiPrintError(parserPtr, + ERR_MODULE_NOT_FOUND, $3); } checkImports(modulePtr, thisParserPtr);
It doesn't suppress the error that loadModule prints, so you get two copies of the MODULE_NOT_FOUND error, but it at least gives you the info.
[This patch will not apply directly due to whitespace corruption - just add the 3 or 4 lines by hand]
Bill