From 06376ae902c1d4436a091b19f61f2c1c6e160f14 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 2 Mar 2025 14:24:39 +0100 Subject: [PATCH] Improve the warning messages for .hdl and .biaschk --- src/frontend/inpcom.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2a8fb34df..83a37f51a 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1305,6 +1305,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name static int is_control = 0; /* We are reading from a .control section */ bool found_end = FALSE, shell_eol_continuation = FALSE; + static bool biaswarn = FALSE; #ifdef CIDER static int in_cider_model = 0; #endif @@ -1445,11 +1446,17 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name if (ciprefix(".hdl", buffer)) { fprintf(cp_err, "Warning: Dot command .hdl is not supported, ingnored\n"); + fprintf(cp_err, " line no. %d, %s", line_number, buffer); + fprintf(cp_err, " file %s\n\n", file_name); tfree(buffer); continue; } if (ciprefix(".biaschk", buffer)) { - fprintf(cp_err, "Warning: Dot command .biaschk is not supported, ingnored\n"); + if (!biaswarn) { + fprintf(cp_err, "Warning: Dot command .biaschk is not supported, ingnored\n"); + fprintf(cp_err, " This message will be posted only once!\n\n"); + biaswarn = TRUE; + } tfree(buffer); continue; }