From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine the argument type... Date: Sat, 17 May 2003 19:59:05 -0700 Organization: Home Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <3EC6F6F9.EAF89167@veritas.com> References: <3EBC71BF.B2264C7@veritas.com> <874r3t5o1f.fsf@zagadka.ping.de> <3EC6A6CA.94855664@veritas.com> <87of213tk0.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053226232 31245 80.91.224.249 (18 May 2003 02:50:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 18 May 2003 02:50:32 +0000 (UTC) Cc: guile development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 18 04:50:26 2003 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 19HEFm-00087n-00 for ; Sun, 18 May 2003 04:50:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HEGt-0002X4-01 for guile-devel@m.gmane.org; Sat, 17 May 2003 22:51:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19HEGQ-0002QQ-00 for guile-devel@gnu.org; Sat, 17 May 2003 22:51:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19HEGP-0002NY-00 for guile-devel@gnu.org; Sat, 17 May 2003 22:51:06 -0400 Original-Received: from bay-bridge.veritas.com ([143.127.3.10] helo=mtvmime01.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HEG0-00025P-00 for guile-devel@gnu.org; Sat, 17 May 2003 22:50:40 -0400 Original-Received: from megami (unverified) by mtvmime01.veritas.com ; Sat, 17 May 2003 19:53:32 -0700 Original-Received: from veritas.com([172.22.12.211]) (2005 bytes) by megami via sendmail with P:esmtp/R:smart_host/T:smtp (sender: ) id for ; Sat, 17 May 2003 19:50:38 -0700 (PDT) (Smail-3.2.0.101 1997-Dec-17 #15 built 2001-Aug-30) X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.19-4GB i686) X-Accept-Language: en Original-To: Marius Vollmer X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2401 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2401 Marius Vollmer wrote: > Ahh, I see. Yes, it was not a good thing to change gh_new2str that > way. I'm not sure what to do about this. Changing this back is just > as bad as the original change from int to size_t. Right. So, what to do now is set up a config macro that puts an scm2newstr_size_t into config.h and provide it for your clients (e.g. me). > Personally, I would stop supporting Guile 1.4 and just require Guile > 1.6 for newer versions of your code... Not a good choice until 1.4 becomes fairly rare. A few more years yet. Heck, some people still sweat K&R compilers and functionless shells! > I dirty workaround, in this particular case, might be to always pass > NULL as lenp and get the length via scm_string_length I thought of that and, in the end, I devised a way to avoid the offending calls. The code is tighter now. :-) But, the truth is, this is just an annoyance problem. I would _really_ like to fix the error messages emitted by libguile without having to read source code to figure out how to rewrite gh_eval_str to be able to plug in a file name and line number. I've actually made a couple of runs at it, but I confess to finding the code a bit difficult to follow..... :-( Regards, Bruce _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel