From aa8fb8229e7db025178c2d92b4f196d7f942dafe Mon Sep 17 00:00:00 2001 From: Francois Donnet Date: Thu, 10 Apr 2003 10:04:58 +0000 Subject: [PATCH] message d'erreur avec numero de ligne --- alliance/src/vbl/src/vbl_util.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/alliance/src/vbl/src/vbl_util.c b/alliance/src/vbl/src/vbl_util.c index 71eacba8..cb0bed71 100644 --- a/alliance/src/vbl/src/vbl_util.c +++ b/alliance/src/vbl/src/vbl_util.c @@ -259,13 +259,19 @@ char *str1; { VBL_ERRFLG++; - if (code < 100) (void)fprintf (stderr,"Error %d line %ld in file %s :",code,VBL_LINNUM, VBL_FILENAME); + +#if 0 /* Francois Donnet 10/04/2003: I watch all calls to this function. + * all calls with argument code >= 100 come from parser vbl_bcomp_y.y + * which defines VBL_LINNUM and VBL_FILENAME + * Frustrating not to know the line of user error! + */ else { if (code < 200) (void)fprintf (stderr,"Error %d :",code); } +#endif switch (code) {