From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "carlo.bramix@libero.it" Newsgroups: gmane.lisp.guile.devel Subject: Fix for alloca() usage Date: Fri, 19 Nov 2010 13:21:31 +0100 (CET) Message-ID: <27315848.3019331290169291262.JavaMail.defaultUser@defaultHost> Reply-To: "carlo.bramix@libero.it" NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_278420_8439504.1290169291261" X-Trace: dough.gmane.org 1290169303 18297 80.91.229.12 (19 Nov 2010 12:21:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 12:21:43 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Nov 19 13:21:39 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJPyF-0000yS-Am for guile-devel@m.gmane.org; Fri, 19 Nov 2010 13:21:39 +0100 Original-Received: from localhost ([127.0.0.1]:48817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJPyE-0000On-Oc for guile-devel@m.gmane.org; Fri, 19 Nov 2010 07:21:38 -0500 Original-Received: from [140.186.70.92] (port=51634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJPyB-0000Oc-Dy for guile-devel@gnu.org; Fri, 19 Nov 2010 07:21:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJPyA-0006hj-7t for guile-devel@gnu.org; Fri, 19 Nov 2010 07:21:35 -0500 Original-Received: from cp-out3.libero.it ([212.52.84.103]:37131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJPy9-0006gs-VQ for guile-devel@gnu.org; Fri, 19 Nov 2010 07:21:34 -0500 Original-Received: from wmail38 (172.31.0.227) by cp-out3.libero.it (8.5.107) (authenticated as carlo.bramix@libero.it) id 4CE270B100492C79 for guile-devel@gnu.org; Fri, 19 Nov 2010 13:21:31 +0100 X-SenderIP: 213.203.169.135 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11140 Archived-At: ------=_Part_278420_8439504.1290169291261 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, the following files: libguile/control.c libguile/fluids.c libguile/foreign.c libguile/hashtab.c libguile/strings.c require to include . Since the alloca.h generated into the /lib directory takes care of various configurations, this will fix alloca() usage: after applying the fix, these sources will be able to be compiled on Windows since the compiler implements _alloca() instead of alloca(). The attached patch has been generated from the latest sources in the repository. Sincerely, Carlo Bramini. ------=_Part_278420_8439504.1290169291261 Content-Type: text/plain; name=guile.txt Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=guile.txt; size=1847 diff -r -u guile-HEAD-c9b16ce-old/libguile/control.c guile-HEAD-c9b16ce-new/libguile/control.c --- guile-HEAD-c9b16ce-old/libguile/control.c 2010-11-18 20:48:55 +0000 +++ guile-HEAD-c9b16ce-new/libguile/control.c 2010-11-19 12:06:52 +0000 @@ -20,6 +20,8 @@ # include #endif +#include + #include "libguile/_scm.h" #include "libguile/control.h" #include "libguile/objcodes.h" diff -r -u guile-HEAD-c9b16ce-old/libguile/fluids.c guile-HEAD-c9b16ce-new/libguile/fluids.c --- guile-HEAD-c9b16ce-old/libguile/fluids.c 2010-11-18 20:48:55 +0000 +++ guile-HEAD-c9b16ce-new/libguile/fluids.c 2010-11-19 12:07:06 +0000 @@ -20,6 +20,7 @@ # include #endif +#include #include #include diff -r -u guile-HEAD-c9b16ce-old/libguile/foreign.c guile-HEAD-c9b16ce-new/libguile/foreign.c --- guile-HEAD-c9b16ce-old/libguile/foreign.c 2010-11-18 20:48:55 +0000 +++ guile-HEAD-c9b16ce-new/libguile/foreign.c 2010-11-19 12:07:15 +0000 @@ -22,6 +22,7 @@ #include +#include #include #include #include diff -r -u guile-HEAD-c9b16ce-old/libguile/hashtab.c guile-HEAD-c9b16ce-new/libguile/hashtab.c --- guile-HEAD-c9b16ce-old/libguile/hashtab.c 2010-11-18 20:48:55 +0000 +++ guile-HEAD-c9b16ce-new/libguile/hashtab.c 2010-11-19 12:07:24 +0000 @@ -23,6 +23,7 @@ #endif #include +#include #include #include "libguile/_scm.h" diff -r -u guile-HEAD-c9b16ce-old/libguile/strings.c guile-HEAD-c9b16ce-new/libguile/strings.c --- guile-HEAD-c9b16ce-old/libguile/strings.c 2010-11-18 20:48:55 +0000 +++ guile-HEAD-c9b16ce-new/libguile/strings.c 2010-11-19 12:07:34 +0000 @@ -22,6 +22,7 @@ # include #endif +#include #include #include #include ------=_Part_278420_8439504.1290169291261--