guile-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

guile/guile-core/libguile ChangeLog _scm.h erro...


From: Mikael Djurfeldt
Subject: guile/guile-core/libguile ChangeLog _scm.h erro...
Date: Sat, 10 Mar 2001 08:56:10 -0800

CVSROOT:        /cvs
Module name:    guile
Changes by:     Mikael Djurfeldt <address@hidden>       01/03/10 08:56:09

Modified files:
        guile-core/libguile: ChangeLog _scm.h error.c filesys.c gc.c 
                             ioext.c iselect.c net_db.c ports.c posix.c 
                             print.c putenv.c scmsigs.c script.c 
                             simpos.c smob.c socket.c srcprop.c stime.c 
                             strop.c unif.c vports.c 

Log message:
        * _scm.h: Removed #include <errno.h>.
        
        * error.c, net_db.c, putenv.c, stime.c: Removed declaration of
        errno variable (can be a macro on some systems, for example when
        using linux libc with threads).
        
        * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
        posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
        socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
        #include <errno.h> in these 20 out of 100 files.

CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/ChangeLog.diff?r1=1.1310&r2=1.1311
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/_scm.h.diff?r1=1.21&r2=1.22
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/error.c.diff?r1=1.54&r2=1.55
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/filesys.c.diff?r1=1.92&r2=1.93
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/gc.c.diff?r1=1.182&r2=1.183
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/ioext.c.diff?r1=1.77&r2=1.78
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/iselect.c.diff?r1=1.26&r2=1.27
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/net_db.c.diff?r1=1.52&r2=1.53
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/ports.c.diff?r1=1.134&r2=1.135
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/posix.c.diff?r1=1.84&r2=1.85
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/print.c.diff?r1=1.116&r2=1.117
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/putenv.c.diff?r1=1.6&r2=1.7
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/scmsigs.c.diff?r1=1.51&r2=1.52
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/script.c.diff?r1=1.36&r2=1.37
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/simpos.c.diff?r1=1.39&r2=1.40
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/smob.c.diff?r1=1.39&r2=1.40
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/socket.c.diff?r1=1.63&r2=1.64
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/srcprop.c.diff?r1=1.44&r2=1.45
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/stime.c.diff?r1=1.62&r2=1.63
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/strop.c.diff?r1=1.50&r2=1.51
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/unif.c.diff?r1=1.103&r2=1.104
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/vports.c.diff?r1=1.41&r2=1.42

Patches:
Index: guile/guile-core/libguile/ChangeLog
diff -u guile/guile-core/libguile/ChangeLog:1.1310 
guile/guile-core/libguile/ChangeLog:1.1311
--- guile/guile-core/libguile/ChangeLog:1.1310  Sat Mar 10 02:30:16 2001
+++ guile/guile-core/libguile/ChangeLog Sat Mar 10 08:56:06 2001
@@ -1,3 +1,16 @@
+2001-03-10  Mikael Djurfeldt  <address@hidden>
+
+       * _scm.h: Removed #include <errno.h>.
+
+       * error.c, net_db.c, putenv.c, stime.c: Removed declaration of
+       errno variable (can be a macro on some systems, for example when
+       using linux libc with threads).
+
+       * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
+       posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
+       socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
+       #include <errno.h> in these 20 out of 100 files.
+       
 2001-03-10  Gary Houston  <address@hidden>
 
        * socket.c: add a definition of SUN_LEN (from glibc) for when it's
Index: guile/guile-core/libguile/_scm.h
diff -u guile/guile-core/libguile/_scm.h:1.21 
guile/guile-core/libguile/_scm.h:1.22
--- guile/guile-core/libguile/_scm.h:1.21       Tue May 16 05:11:08 2000
+++ guile/guile-core/libguile/_scm.h    Sat Mar 10 08:56:06 2001
@@ -2,7 +2,7 @@
 
 #ifndef _SCMH
 #define _SCMH
-/*     Copyright (C) 1995,1996, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -75,11 +75,6 @@
                                   switching at async ticks.  */
 #endif
 #include "libguile/snarf.h"    /* Everyone snarfs. */
-
-/* On VMS, GNU C's errno.h contains a special hack to get link attributes
- * for errno correct for linking to the C RTL.
- */
-#include <errno.h>
 
 /* SCM_SYSCALL retries system calls that have been interrupted (EINTR).
    However this can be avoided if the operating system can restart
Index: guile/guile-core/libguile/error.c
diff -u guile/guile-core/libguile/error.c:1.54 
guile/guile-core/libguile/error.c:1.55
--- guile/guile-core/libguile/error.c:1.54      Fri Nov 17 08:25:03 2000
+++ guile/guile-core/libguile/error.c   Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, 
Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,7 @@
 
 
 #include <stdio.h>
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/pairs.h"
@@ -66,8 +67,6 @@
 /* {Errors and Exceptional Conditions}
  */
 
-
-extern int errno;
 
 /* All errors should pass through here.  */
 void
Index: guile/guile-core/libguile/filesys.c
diff -u guile/guile-core/libguile/filesys.c:1.92 
guile/guile-core/libguile/filesys.c:1.93
--- guile/guile-core/libguile/filesys.c:1.92    Fri Feb 16 07:15:50 2001
+++ guile/guile-core/libguile/filesys.c Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, 
Inc.
+/*     Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software 
Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,8 @@
 
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/smob.h"
 #include "libguile/feature.h"
Index: guile/guile-core/libguile/gc.c
diff -u guile/guile-core/libguile/gc.c:1.182 
guile/guile-core/libguile/gc.c:1.183
--- guile/guile-core/libguile/gc.c:1.182        Fri Mar  9 15:33:39 2001
+++ guile/guile-core/libguile/gc.c      Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, 
Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -51,7 +51,9 @@
 
 
 #include <stdio.h>
+#include <errno.h>
 #include <string.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/stime.h"
Index: guile/guile-core/libguile/ioext.c
diff -u guile/guile-core/libguile/ioext.c:1.77 
guile/guile-core/libguile/ioext.c:1.78
--- guile/guile-core/libguile/ioext.c:1.77      Wed Jan 24 13:45:09 2001
+++ guile/guile-core/libguile/ioext.c   Sat Mar 10 08:56:06 2001
@@ -44,6 +44,8 @@
 
 
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/ioext.h"
 #include "libguile/fports.h"
Index: guile/guile-core/libguile/iselect.c
diff -u guile/guile-core/libguile/iselect.c:1.26 
guile/guile-core/libguile/iselect.c:1.27
--- guile/guile-core/libguile/iselect.c:1.26    Fri Mar  9 19:09:07 2001
+++ guile/guile-core/libguile/iselect.c Sat Mar 10 08:56:06 2001
@@ -40,6 +40,7 @@
  * If you do not wish that, delete this exception notice.  */
 
 #include <stdio.h>
+#include <errno.h>
 #include <limits.h>
 #include <string.h>
 
Index: guile/guile-core/libguile/net_db.c
diff -u guile/guile-core/libguile/net_db.c:1.52 
guile/guile-core/libguile/net_db.c:1.53
--- guile/guile-core/libguile/net_db.c:1.52     Fri Mar  9 15:33:40 2001
+++ guile/guile-core/libguile/net_db.c  Sat Mar 10 08:56:06 2001
@@ -1,5 +1,5 @@
 /* "net_db.c" network database support
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+ * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, 
Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -51,6 +51,8 @@
  */
 
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/feature.h"
 #include "libguile/strings.h"
@@ -68,10 +70,6 @@
 #include <netdb.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-
-#if !defined (HAVE_H_ERRNO)
-extern int h_errno;
-#endif
 
 
 
Index: guile/guile-core/libguile/ports.c
diff -u guile/guile-core/libguile/ports.c:1.134 
guile/guile-core/libguile/ports.c:1.135
--- guile/guile-core/libguile/ports.c:1.134     Thu Mar  8 16:21:27 2001
+++ guile/guile-core/libguile/ports.c   Sat Mar 10 08:56:06 2001
@@ -46,6 +46,8 @@
 /* Headers.  */
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/objects.h"
Index: guile/guile-core/libguile/posix.c
diff -u guile/guile-core/libguile/posix.c:1.84 
guile/guile-core/libguile/posix.c:1.85
--- guile/guile-core/libguile/posix.c:1.84      Fri Mar  9 17:07:06 2001
+++ guile/guile-core/libguile/posix.c   Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, 
Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -48,6 +48,8 @@
 #define _GNU_SOURCE
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/fports.h"
 #include "libguile/scmsigs.h"
Index: guile/guile-core/libguile/print.c
diff -u guile/guile-core/libguile/print.c:1.116 
guile/guile-core/libguile/print.c:1.117
--- guile/guile-core/libguile/print.c:1.116     Fri Mar  9 15:33:40 2001
+++ guile/guile-core/libguile/print.c   Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,6 +43,8 @@
    address@hidden, http://www.cs.washington.edu/homes/gjb */
 
 
+
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
Index: guile/guile-core/libguile/putenv.c
diff -u guile/guile-core/libguile/putenv.c:1.6 
guile/guile-core/libguile/putenv.c:1.7
--- guile/guile-core/libguile/putenv.c:1.6      Mon Jun 12 05:28:23 2000
+++ guile/guile-core/libguile/putenv.c  Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 2000, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -24,9 +24,6 @@
 
 #include <sys/types.h>
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 /* Don't include stdlib.h for non-GNU C libraries because some of them
    contain conflicting prototypes for getopt.
Index: guile/guile-core/libguile/scmsigs.c
diff -u guile/guile-core/libguile/scmsigs.c:1.51 
guile/guile-core/libguile/scmsigs.c:1.52
--- guile/guile-core/libguile/scmsigs.c:1.51    Fri Mar  9 15:33:41 2001
+++ guile/guile-core/libguile/scmsigs.c Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, 
Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software 
Foundation, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 
 
 #include <signal.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 
 #include "libguile/async.h"
Index: guile/guile-core/libguile/script.c
diff -u guile/guile-core/libguile/script.c:1.36 
guile/guile-core/libguile/script.c:1.37
--- guile/guile-core/libguile/script.c:1.36     Sun Mar  4 09:09:34 2001
+++ guile/guile-core/libguile/script.c  Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000 Free Software Foundation, 
Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001 Free Software 
Foundation, Inc.
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2, or (at your option)
@@ -45,7 +45,9 @@
    address@hidden, http://www.cs.washington.edu/homes/gjb */
 
 #include <stdio.h>
+#include <errno.h>
 #include <ctype.h>
+
 #include "libguile/_scm.h"
 #include "libguile/gh.h"
 #include "libguile/load.h"
Index: guile/guile-core/libguile/simpos.c
diff -u guile/guile-core/libguile/simpos.c:1.39 
guile/guile-core/libguile/simpos.c:1.40
--- guile/guile-core/libguile/simpos.c:1.39     Fri Mar  9 15:33:41 2001
+++ guile/guile-core/libguile/simpos.c  Sat Mar 10 08:56:06 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, 
Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,6 +43,8 @@
    address@hidden, http://www.cs.washington.edu/homes/gjb */
 
 
+
+#include <errno.h>
 
 #include "libguile/_scm.h"
 
Index: guile/guile-core/libguile/smob.c
diff -u guile/guile-core/libguile/smob.c:1.39 
guile/guile-core/libguile/smob.c:1.40
--- guile/guile-core/libguile/smob.c:1.39       Mon Mar  5 17:22:37 2001
+++ guile/guile-core/libguile/smob.c    Sat Mar 10 08:56:07 2001
@@ -45,6 +45,8 @@
 
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 
 #include "libguile/objects.h"
Index: guile/guile-core/libguile/socket.c
diff -u guile/guile-core/libguile/socket.c:1.63 
guile/guile-core/libguile/socket.c:1.64
--- guile/guile-core/libguile/socket.c:1.63     Sat Mar 10 02:30:16 2001
+++ guile/guile-core/libguile/socket.c  Sat Mar 10 08:56:07 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,6 +43,8 @@
    address@hidden, http://www.cs.washington.edu/homes/gjb */
 
 
+
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/unif.h"
Index: guile/guile-core/libguile/srcprop.c
diff -u guile/guile-core/libguile/srcprop.c:1.44 
guile/guile-core/libguile/srcprop.c:1.45
--- guile/guile-core/libguile/srcprop.c:1.44    Fri Mar  9 15:33:41 2001
+++ guile/guile-core/libguile/srcprop.c Sat Mar 10 08:56:07 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software 
Foundation
+/*     Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software 
Foundation
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -46,6 +46,8 @@
    address@hidden, http://www.cs.washington.edu/homes/gjb */
 
 
+
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/smob.h"
Index: guile/guile-core/libguile/stime.c
diff -u guile/guile-core/libguile/stime.c:1.62 
guile/guile-core/libguile/stime.c:1.63
--- guile/guile-core/libguile/stime.c:1.62      Sat Feb 17 03:28:30 2001
+++ guile/guile-core/libguile/stime.c   Sat Mar 10 08:56:07 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998, 1999, 2000, 2001 Free Software 
Foundation, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/feature.h"
 #include "libguile/strings.h"
@@ -127,8 +129,6 @@
 #  define mytime clock
 # endif
 #endif
-
-extern int errno;
 
 #ifdef HAVE_FTIME
 struct timeb scm_your_base = {0};
Index: guile/guile-core/libguile/strop.c
diff -u guile/guile-core/libguile/strop.c:1.50 
guile/guile-core/libguile/strop.c:1.51
--- guile/guile-core/libguile/strop.c:1.50      Fri Mar  9 15:33:41 2001
+++ guile/guile-core/libguile/strop.c   Sat Mar 10 08:56:07 2001
@@ -1,6 +1,6 @@
 /* classes: src_files */
 
-/*     Copyright (C) 1994, 1996, 1997, 1999, 2000 Free Software Foundation, 
Inc.
+/*     Copyright (C) 1994, 1996, 1997, 1999, 2000, 2001 Free Software 
Foundation, Inc.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -22,6 +22,8 @@
 
 
 
+
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
Index: guile/guile-core/libguile/unif.c
diff -u guile/guile-core/libguile/unif.c:1.103 
guile/guile-core/libguile/unif.c:1.104
--- guile/guile-core/libguile/unif.c:1.103      Fri Mar  9 15:33:41 2001
+++ guile/guile-core/libguile/unif.c    Sat Mar 10 08:56:07 2001
@@ -52,7 +52,9 @@
 
 
 #include <stdio.h>
+#include <errno.h>
 #include <string.h>
+
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
 #include "libguile/eval.h"
Index: guile/guile-core/libguile/vports.c
diff -u guile/guile-core/libguile/vports.c:1.41 
guile/guile-core/libguile/vports.c:1.42
--- guile/guile-core/libguile/vports.c:1.41     Thu Jan 25 09:18:41 2001
+++ guile/guile-core/libguile/vports.c  Sat Mar 10 08:56:09 2001
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1998,1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1998,1999, 2000, 2001 Free Software Foundation, 
Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/chars.h"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]