Compare commits

...

2 Commits

Author SHA1 Message Date
Holger Vogt 236967a21e Improve error message: add source type 2025-10-06 17:30:38 +02:00
Holger Vogt 8585383654 Improve error messages. Towards better locating of errors:
Remove entry to avoid false file readings.
Still to do: Return correct fline numbers, when reading large PDKs.
2025-10-06 17:07:27 +02:00
1 changed files with 2 additions and 5 deletions

View File

@ -1609,11 +1609,8 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
char* tmpstr = copy(nexttok(buffer));
wl_append_word(&sourceinfo, &sourceinfo, tmpstr);
/* Add source of netlist data, for use in verbose error messages.
Set the compatibility mode flag to 1, if pslt is read. */
/* Set the compatibility mode flag to 1, if pslt is read. */
for (tmpcard = newcard; tmpcard; tmpcard = tmpcard->nextcard) {
/* skip *include */
tmpcard->linesource = tmpstr;
if (compset)
tmpcard->compmod = 1;
else
@ -9045,7 +9042,7 @@ static void inp_check_syntax(struct card *deck)
acline = nexttok(acline);
if (!acline) {
fprintf(stderr, "Error in line %s\n", cut_line);
fprintf(stderr, " Not enough parameters\n");
fprintf(stderr, " Not enough parameters for %c source\n", *cut_line);
fprintf(stderr,
" line no. %d from file %s\n",
card->linenum_orig, card->linesource);