1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +02:00

Devolve gc.h

* libguile/_scm.h: Remove gc.h.
* libguile/arrays.h:
* libguile/bytevectors.h:
* libguile/foreign.h:
* libguile/fports.h:
* libguile/frames.h:
* libguile/hashtab.h:
* libguile/modules.h:
* libguile/numbers.h:
* libguile/print.h:
* libguile/programs.h:
* libguile/smob.h:
* libguile/snarf.h:
* libguile/strports.h:
* libguile/struct.h:
* libguile/symbols.h:
* libguile/variable.h:
* libguile/vectors.h:
* libguile/vm.h: Add gc.h to users of scm_cell_* interfaces.  Not really
  visible right now given that e.g. numbers.h is already included in
  _scm.h.
This commit is contained in:
Andy Wingo 2018-06-18 22:27:29 +02:00
parent 730cfd80e2
commit 2b95d6faa4
19 changed files with 30 additions and 7 deletions

View file

@ -36,7 +36,6 @@
/* Include headers for those files central to the implementation. The
rest should be explicitly #included in the C files themselves. */
#include "libguile/gc.h" /* Everyone allocates. */
#include "libguile/gsubr.h" /* Everyone defines global functions. */
#include "libguile/procs.h" /* Same. */
#include "libguile/numbers.h" /* Everyone deals with fixnums. */

View file

@ -3,8 +3,8 @@
#ifndef SCM_ARRAY_H
#define SCM_ARRAY_H
/* Copyright (C) 1995,1996,1997,1999,2000,2001, 2004, 2006, 2008, 2009,
* 2010, 2012 Free Software Foundation, Inc.
/* Copyright (C) 1995-1997,1999-2001,2004,2006,2008-2010,2012,2018
* Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@ -25,6 +25,7 @@
#include "libguile/__scm.h"
#include "libguile/gc.h"
#include "libguile/print.h"

View file

@ -23,6 +23,8 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include "libguile/gc.h"
#include "libguile/uniform.h"

View file

@ -1,7 +1,7 @@
#ifndef SCM_FOREIGN_H
#define SCM_FOREIGN_H
/* Copyright (C) 2010, 2011, 2012, 2013, 2016 Free Software Foundation, Inc.
/* Copyright (C) 2010-2013,2016,2018 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@ -20,6 +20,7 @@
*/
#include "libguile/__scm.h"
#include "libguile/gc.h"
/* A "foreign pointer" is a wrapped C pointer. It is represented by a
cell whose second word is a pointer. The first word has the

View file

@ -25,7 +25,7 @@
#include "libguile/__scm.h"
#include "libguile/gc.h"
#include "libguile/ports.h"

View file

@ -20,6 +20,8 @@
#define _SCM_FRAMES_H_
#include <libguile/__scm.h>
#include <libguile/gc.h>
#include "programs.h"

View file

@ -25,6 +25,7 @@
#include "libguile/__scm.h"
#include "libguile/gc.h"

View file

@ -26,6 +26,8 @@
#include "libguile/__scm.h"
#include "libguile/gc.h"

View file

@ -28,6 +28,8 @@
#include "libguile/__scm.h"
#include "libguile/error.h"
#include "libguile/gc.h"
#include "libguile/print.h"
#ifndef SCM_T_WCHAR_DEFINED

View file

@ -28,6 +28,7 @@
#include "libguile/chars.h"
#include <libguile/error.h>
#include <libguile/gc.h>
#include "libguile/options.h"

View file

@ -20,6 +20,7 @@
#define _SCM_PROGRAMS_H_
#include <libguile/__scm.h>
#include <libguile/gc.h>
/*
* Programs

View file

@ -26,6 +26,7 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include <libguile/gc.h>
#include "libguile/print.h"

View file

@ -3,8 +3,8 @@
#ifndef SCM_SNARF_H
#define SCM_SNARF_H
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
* 2004, 2006, 2009, 2010, 2011, 2013, 2014 Free Software Foundation, Inc.
/* Copyright (C) 1995-2004,2006,2009-2011,2013-2014,2018
* Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@ -24,6 +24,9 @@
#include <libguile/gc.h>
/* Macros for snarfing initialization actions from C source. */
/* Casting to a function that can take any number of arguments. */

View file

@ -26,6 +26,7 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include <libguile/gc.h>
#include <libguile/ports.h>

View file

@ -27,6 +27,7 @@
#include "libguile/__scm.h"
#include "libguile/boolean.h"
#include <libguile/error.h>
#include <libguile/gc.h>
#include "libguile/print.h"

View file

@ -27,6 +27,8 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include <libguile/gc.h>

View file

@ -26,6 +26,7 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include <libguile/gc.h>

View file

@ -26,6 +26,7 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
#include "libguile/gc.h"

View file

@ -20,6 +20,7 @@
#define _SCM_VM_H_
#include <libguile/__scm.h>
#include <libguile/gc.h>
#include <libguile/frames.h>
#include <libguile/programs.h>