From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dirk Herrmann Newsgroups: gmane.lisp.guile.devel Subject: Re: proposal: meaningful read error messages Date: Mon, 19 Aug 2002 08:50:30 +0200 (CEST) Sender: guile-devel-admin@gnu.org Message-ID: References: <15685.13317.103079.561203@meddo.cs.uu.nl> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1029739808 24974 127.0.0.1 (19 Aug 2002 06:50:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2002 06:50:08 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ggMW-0006UV-00 for ; Mon, 19 Aug 2002 08:50:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ggNZ-0002Bf-00; Mon, 19 Aug 2002 02:51:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17ggN4-0002BA-00 for guile-devel@gnu.org; Mon, 19 Aug 2002 02:50:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17ggN2-0002At-00 for guile-devel@gnu.org; Mon, 19 Aug 2002 02:50:38 -0400 Original-Received: from sallust.ida.ing.tu-bs.de ([134.169.132.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ggN2-0002Aj-00 for guile-devel@gnu.org; Mon, 19 Aug 2002 02:50:36 -0400 Original-Received: from localhost (dirk@localhost) by sallust.ida.ing.tu-bs.de (8.9.3+Sun/8.9.1) with ESMTP id IAA16118; Mon, 19 Aug 2002 08:50:30 +0200 (CEST) Original-To: Han-Wen Nienhuys In-Reply-To: <15685.13317.103079.561203@meddo.cs.uu.nl> Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1118 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1118 On Mon, 29 Jul 2002, Han-Wen Nienhuys wrote: > I propose to install more meaningful error messages in scm_lreadr(): > we could replace SCM_MISC_ERROR() by the following macro: > > #define INPUT_ERROR(port,message,arg) \ > { char s[1024];\ > char *fn = scm_string_p (SCM_FILENAME(port)) ? SCM_STRING_CHARS(SCM_FILENAME(port)) : ""; \ > sprintf (s, "In %s:%ld:%d : %s", fn, SCM_LINUM(port), SCM_COL(port) + 1, message);\ > SCM_MISC_ERROR(s, arg);\ > }\ > > > any thoughts, comments? (Should this be switched off if > SCM_RECORD_POSITIONS_P is off?) I like better error messages. However, I would suggest to use a function instead of a macro. Performance is not a problem when it comes to handling errors. Best regards, Dirk _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel