From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Todd Newsgroups: gmane.lisp.guile.devel Subject: [patch] int -> size_t build correction Date: Tue, 24 Aug 2004 21:05:43 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <4570750A-F63B-11D8-8679-000A95B4C7DC@mac.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/mixed; boundary=Apple-Mail-2--871773344 X-Trace: sea.gmane.org 1093399526 528 80.91.224.253 (25 Aug 2004 02:05:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Aug 2004 02:05:26 +0000 (UTC) Cc: Richard Todd Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 25 04:05:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BznA6-0008HK-00 for ; Wed, 25 Aug 2004 04:05:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BznEd-0002c0-FS for guile-devel@m.gmane.org; Tue, 24 Aug 2004 22:09:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BznEV-0002bV-TP for guile-devel@gnu.org; Tue, 24 Aug 2004 22:09:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BznES-0002az-RP for guile-devel@gnu.org; Tue, 24 Aug 2004 22:09:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BznES-0002aw-OY for guile-devel@gnu.org; Tue, 24 Aug 2004 22:09:48 -0400 Original-Received: from [17.250.248.47] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bzn9U-0000V0-Ti for guile-devel@gnu.org; Tue, 24 Aug 2004 22:04:41 -0400 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i7P24cmL006865 for ; Tue, 24 Aug 2004 19:04:38 -0700 (PDT) Original-Received: from [10.0.1.2] (97.157.171.66.subscriber.vzavenue.net [66.171.157.97]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id i7P24XsD028911 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Tue, 24 Aug 2004 19:04:36 -0700 (PDT) Original-To: guile-devel@gnu.org X-Mailer: Apple Mail (2.619) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4035 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4035 --Apple-Mail-2--871773344 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed CVS guile doesn't build cleanly for me right now, because of some 'int's in srfi-13.c where size_t's were expected. A patch is attached. I glanced through the code and didn't see anywhere where it would depend on those variables being signed, and 'make check' passes for me, so I think it's good. thanks, Richard --Apple-Mail-2--871773344 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="size_t.patch" Content-Disposition: attachment; filename=size_t.patch Index: guile-core/libguile/srfi-13.c =================================================================== RCS file: /cvsroot/guile/guile/guile-core/libguile/srfi-13.c,v retrieving revision 1.1 diff -u -r1.1 srfi-13.c --- guile-core/libguile/srfi-13.c 24 Aug 2004 22:11:35 -0000 1.1 +++ guile-core/libguile/srfi-13.c 25 Aug 2004 01:52:18 -0000 @@ -92,7 +92,7 @@ #define FUNC_NAME s_scm_string_any { const char *cstr; - int cstart, cend; + size_t cstart, cend; SCM res; MY_VALIDATE_SUBSTRING_SPEC_COPY (2, s, cstr, @@ -151,7 +151,7 @@ #define FUNC_NAME s_scm_string_every { const char *cstr; - int cstart, cend; + size_t cstart, cend; SCM res; MY_VALIDATE_SUBSTRING_SPEC_COPY (2, s, cstr, @@ -235,7 +235,7 @@ #define FUNC_NAME s_scm_substring_to_list { const char *cstr; - int cstart, cend; + size_t cstart, cend; SCM result = SCM_EOL; MY_VALIDATE_SUBSTRING_SPEC_COPY (1, str, cstr, @@ -763,7 +763,7 @@ #define FUNC_NAME s_scm_string_trim_right { const char *cstr; - int cstart, cend; + size_t cstart, cend; MY_VALIDATE_SUBSTRING_SPEC_COPY (1, s, cstr, 3, start, cstart, @@ -3001,7 +3001,7 @@ const char *cs; size_t ctstart, csfrom, csto, cstart, cend; SCM dummy = SCM_UNDEFINED; - int cdummy; + size_t cdummy; MY_VALIDATE_SUBSTRING_SPEC (1, target, 2, tstart, ctstart, --Apple-Mail-2--871773344 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel --Apple-Mail-2--871773344--