From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugh Sasse Newsgroups: gmane.lisp.guile.user Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly. Date: Thu, 18 Jan 2007 09:57:39 +0000 (WET) Message-ID: References: <87fyafvol7.fsf@zip.com.au> <87fyacuj4h.fsf@zip.com.au> <87irf5xizi.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1169114376 24134 80.91.229.12 (18 Jan 2007 09:59:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 09:59:36 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jan 18 10:59:32 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7U3P-0007vK-9j for guile-user@m.gmane.org; Thu, 18 Jan 2007 10:59:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7U3P-0002DH-MZ for guile-user@m.gmane.org; Thu, 18 Jan 2007 04:59:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7U1s-0002B7-3V for guile-user@gnu.org; Thu, 18 Jan 2007 04:57:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7U1k-00027r-IH for guile-user@gnu.org; Thu, 18 Jan 2007 04:57:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7U1k-00027H-7d for guile-user@gnu.org; Thu, 18 Jan 2007 04:57:48 -0500 Original-Received: from [146.227.160.29] (helo=mail2.dmu.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7U1j-00055s-84 for guile-user@gnu.org; Thu, 18 Jan 2007 04:57:47 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.dmu.ac.uk (Postfix) with ESMTP id A66157DC9D5; Thu, 18 Jan 2007 09:57:43 +0000 (GMT) Original-Received: from europa.cse.dmu.ac.uk (europa.cse.dmu.ac.uk [146.227.57.47]) by mail2.dmu.ac.uk (Postfix) with ESMTP id B13E67DC888; Thu, 18 Jan 2007 09:57:40 +0000 (GMT) Original-Received: from brains ([146.227.22.1]) by europa.cse.dmu.ac.uk (8.13.6/8.13.6) with ESMTP id l0I9vdkS022191; Thu, 18 Jan 2007 09:57:40 GMT Original-Received: from brains.eng.cse.dmu.ac.uk ([146.227.22.1] helo=brains) by brains with esmtp (Exim 4.44) id 1H7U1b-0000DE-F3; Thu, 18 Jan 2007 09:57:39 +0000 X-X-Sender: hgs@brains.eng.cse.dmu.ac.uk Original-To: Kevin Ryde In-Reply-To: <87irf5xizi.fsf@zip.com.au> X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5795 Archived-At: On Thu, 18 Jan 2007, Kevin Ryde wrote: > Hugh Sasse writes: > > > > putenv putenv (3c) - change or add value to environment > > > > The manual page says it should be of the form "name=value" and the > > string should not be automatic. In a function it should be declared > > static. > > Yep. I believe there's a bit of variation in whether it's copied or > not. The fleebsd extreme is to copy and then in fact never free. ^^^^^^ ! :-) ^^^^^ Ouch! > > For an unsetenv traditionally I think it was putenv("FOO"). We should bash-2.05$ gcc -o putenvtest putenvtest.c bash-2.05$ ./putenvtest PUTENVTEST is something_or_other PUTENVTEST is something_or_other bash-2.05$ cat putenvtest.c #include #include int main(int argc, char *argv[]); void display_putenvtest_var(); void display_putenvtest_var() { char *value; if ((value = getenv("PUTENVTEST")) != NULL) { printf("PUTENVTEST is %s\n",value); } else { printf("no such environment variable as PUTENVTEST\n"); } } int main(int argc, char *argv[]) { putenv("PUTENVTEST=something_or_other"); display_putenvtest_var(); putenv("PUTENVTEST"); display_putenvtest_var(); return(0); } bash-2.05$ > try to arrange to do that, somehow. There's an autoconf portability > note that such a putenv seg faults on AIX, but presumably there's an I don't have access to AIX. > unsetenv on that system. I can't find anything about removing an environment variable in C. > > An alternative would be the gnulib portable implementations of all > these bits, which do some explict manipulation of the "environ" global > variable. This would introduce another dependency, I think.... > Hugh _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user