1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-15 08:10:17 +02:00

Remove errno.h include from _scm.h.

* libguile/_scm.h: Remove errno.h include.
* libguile/bytevectors.c:
* libguile/debug.c:
* libguile/finalizers.c:
* libguile/loader.c:
* libguile/poll.c:
* libguile/strings.c:
* libguile/threads.c:
* libguile/vm.c: Add errno.h include.  Sort includes as needed.
This commit is contained in:
Andy Wingo 2018-06-17 19:46:33 +02:00
parent 5c511be7b6
commit 68d9780ce4
9 changed files with 29 additions and 29 deletions

View file

@ -32,7 +32,6 @@
and differences between _scm.h and __scm.h. and differences between _scm.h and __scm.h.
**********************************************************************/ **********************************************************************/
#include <errno.h>
#include <verify.h> #include <verify.h>
#include <alignof.h> #include <alignof.h>
#include "libguile/__scm.h" #include "libguile/__scm.h"

View file

@ -26,6 +26,7 @@
#endif #endif
#include <byteswap.h> #include <byteswap.h>
#include <errno.h>
#include <striconveh.h> #include <striconveh.h>
#include <uniconv.h> #include <uniconv.h>
#include <unistr.h> #include <unistr.h>

View file

@ -1,5 +1,6 @@
/* Debugging extensions for Guile /* Debugging extensions for Guile
* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation * Copyright (C) 1995-2003,2006,2008-2013,2018
* Free Software Foundation
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -22,6 +23,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include <errno.h>
#ifdef HAVE_GETRLIMIT #ifdef HAVE_GETRLIMIT
#include <sys/time.h> #include <sys/time.h>
#include <sys/resource.h> #include <sys/resource.h>

View file

@ -23,6 +23,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>

View file

@ -34,6 +34,7 @@
#include <assert.h> #include <assert.h>
#include <alignof.h> #include <alignof.h>
#include <byteswap.h> #include <byteswap.h>
#include <errno.h>
#include <verify.h> #include <verify.h>
#include <full-read.h> #include <full-read.h>

View file

@ -25,6 +25,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <errno.h>
#include <poll.h> #include <poll.h>
#include "libguile/_scm.h" #include "libguile/_scm.h"

View file

@ -1,5 +1,5 @@
/* Copyright (C) 1995, 1996, 1998, 2000, 2001, 2004, 2006, /* Copyright (C) 1995-1996,1998,2000-2001,2004,2006,2008-2016,2018
* 2008-2016 Free Software Foundation, Inc. * Free Software Foundation, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -27,6 +27,7 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include <uninorm.h> #include <uninorm.h>
#include <unistr.h> #include <unistr.h>
#include <uniconv.h> #include <uniconv.h>

View file

@ -22,35 +22,29 @@
# include <config.h> # include <config.h>
#endif #endif
#include "libguile/bdw-gc.h" #include <assert.h>
#include <gc/gc_mark.h> #include <errno.h>
#include "libguile/_scm.h" #include <fcntl.h>
#include "libguile/deprecation.h" #include <full-read.h>
#include "libguile/extensions.h" #include <nproc.h>
#include "libguile/hashtab.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h> /* for memset used by FD_ZERO on Solaris 10 */ #include <string.h> /* for memset used by FD_ZERO on Solaris 10 */
#endif #include <sys/select.h>
#if HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif #include <unistd.h>
#if HAVE_PTHREAD_NP_H #if HAVE_PTHREAD_NP_H
# include <pthread_np.h> # include <pthread_np.h>
#endif #endif
#include <sys/select.h> #include "libguile/bdw-gc.h"
#include <gc/gc_mark.h>
#include <assert.h>
#include <fcntl.h>
#include <nproc.h>
#include "libguile/_scm.h"
#include "libguile/deprecation.h"
#include "libguile/extensions.h"
#include "libguile/hashtab.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/eval.h" #include "libguile/eval.h"
#include "libguile/async.h" #include "libguile/async.h"
@ -67,8 +61,6 @@
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/vm.h" #include "libguile/vm.h"
#include <full-read.h>

View file

@ -20,12 +20,13 @@
# include <config.h> # include <config.h>
#endif #endif
#include <stdlib.h>
#include <alloca.h>
#include <alignof.h> #include <alignof.h>
#include <alloca.h>
#include <errno.h>
#include <math.h> #include <math.h>
#include <string.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H