From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: Re: "configure cannot test when cross-compiling" should be ok Date: Sun, 28 May 2006 08:57:53 +1000 Message-ID: <87wtc713f2.fsf@zip.com.au> References: <8a4b88390605140809g389cbf2va2f265b8660aeab3@mail.gmail.com> <8764k8tc68.fsf@zip.com.au> <8a4b88390605141729m137557d2gfad58c9cacc7f5d1@mail.gmail.com> <877j4ls9ko.fsf@zip.com.au> <8a4b88390605220616q3e614498la5619eab2728c623@mail.gmail.com> <87ejylqyw0.fsf@zip.com.au> <8a4b88390605242017s2b5354edp8716d02a7a11e95@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1148770711 4561 80.91.229.2 (27 May 2006 22:58:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 May 2006 22:58:31 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun May 28 00:58:28 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fk7jk-0007ui-Dz for guile-bugs@m.gmane.org; Sun, 28 May 2006 00:58:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fk7jj-00046i-UG for guile-bugs@m.gmane.org; Sat, 27 May 2006 18:58:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fk7jg-00046V-9C for bug-guile@gnu.org; Sat, 27 May 2006 18:58:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fk7je-000454-G6 for bug-guile@gnu.org; Sat, 27 May 2006 18:58:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fk7je-00044z-BU for bug-guile@gnu.org; Sat, 27 May 2006 18:58:18 -0400 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fk7oq-0001xC-PK for bug-guile@gnu.org; Sat, 27 May 2006 19:03:41 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (Postfix) with ESMTP id EF7BA367D1C; Sun, 28 May 2006 08:58:07 +1000 (EST) Original-Received: from localhost (ppp23E2.dyn.pacific.net.au [61.8.35.226]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k4RMw6T9008552; Sun, 28 May 2006 08:58:06 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1Fk7jG-00028r-00; Sun, 28 May 2006 08:57:54 +1000 Original-To: "The Senator" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3256 Archived-At: --=-=-= "The Senator" writes: > > So perhaps eval.c will need to include malloc.h, Yep, thanks, I made that change. > or is this autoconf's (or even somebody else's) job? The blob of alloca code that's there is (or should be) the autoconf manual recommendation. > ??? This is out of my league, I don't know what to do about this. I'll > be happy to provide whatever information is required though. Oh, I just meant that char-waiting code can probably do better that what it currently can. I don't want to actually work on it, not for DOS, but if anyone can say how it should be done then we can add some code. >> (module-use! guile-user-module (resolve-interface '(ice-9 session))) I made the change below to documentation.scm which looks like it fixes the problem for me in a --disable-regex build. Obviously the affected functions won't run, but at least it should get to the repl. --=-=-= Content-Disposition: attachment; filename=documentation.scm.regexp.diff --- documentation.scm.~1.10.2.1.~ 2006-02-14 08:58:55.000000000 +1100 +++ documentation.scm 2006-05-28 08:34:41.000000000 +1000 @@ -90,14 +90,21 @@ ;; ;; commentary extraction ;; -(define default-in-line-re (make-regexp "^;;; Commentary:")) -(define default-after-line-re (make-regexp "^;;; Code:")) -(define default-scrub (let ((dirt (make-regexp "^;+"))) - (lambda (line) - (let ((m (regexp-exec dirt line))) - (if m (match:suffix m) line))))) (define (file-commentary filename . cust) ; (IN-LINE-RE AFTER-LINE-RE SCRUB) + + ;; These are constants but are not at the top level because the repl in + ;; boot-9.scm loads session.scm which in turn loads this file, and we want + ;; that to work even even when regexps are not available (ie. make-regexp + ;; doesn't exist), as for instance is the case on mingw. + ;; + (define default-in-line-re (make-regexp "^;;; Commentary:")) + (define default-after-line-re (make-regexp "^;;; Code:")) + (define default-scrub (let ((dirt (make-regexp "^;+"))) + (lambda (line) + (let ((m (regexp-exec dirt line))) + (if m (match:suffix m) line))))) + ;; fixme: might be cleaner to use optargs here... (let ((in-line-re (if (> 1 (length cust)) default-in-line-re --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile --=-=-=--