unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Subject: getenv prototype
Date: Thu, 14 Aug 2003 06:24:06 +1000	[thread overview]
Message-ID: <87ekzp487t.fsf@zip.com.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

FYI, just on the general rule that it's better to use headers than
private declarations,

        * simpos.c (getenv): Use <stdlib.h> for prototype.


[-- Attachment #2: simpos.c.getenv.diff --]
[-- Type: text/plain, Size: 463 bytes --]

--- simpos.c.~1.49.~	2003-04-07 08:05:27.000000000 +1000
+++ simpos.c	2003-08-12 19:59:03.000000000 +1000
@@ -22,6 +22,7 @@
 #endif
 
 #include <errno.h>
+#include <stdlib.h>  /* for getenv */
 
 #include "libguile/_scm.h"
 
@@ -74,7 +75,6 @@
 #undef FUNC_NAME
 #endif /* HAVE_SYSTEM */
 
-extern char *getenv();
 SCM_DEFINE (scm_getenv, "getenv", 1, 0, 0, 
             (SCM nam),
 	    "Looks up the string @var{name} in the current environment.  The return\n"

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel

                 reply	other threads:[~2003-08-13 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ekzp487t.fsf@zip.com.au \
    --to=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).