Upgrade Texinfo from 4.8 to 4.13 on the vendor branch
[dragonfly.git] / contrib / texinfo / info / gc.h
1 /* gc.h -- Functions for garbage collecting unused node contents.
2    $Id: gc.h,v 1.6 2007/07/01 21:20:30 karl Exp $
3
4    This file is part of GNU Info, a program for reading online documentation
5    stored in Info format.
6
7    Copyright (C) 1993, 1997, 2004, 2007 Free Software Foundation, Inc.
8
9    This program is free software: you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation, either version 3 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
22    Written by Brian Fox (bfox@ai.mit.edu). */
23
24 #ifndef INFO_GC_H
25 #define INFO_GC_H
26
27 /* Add POINTER to the list of garbage collectible pointers.  A pointer
28    is not actually garbage collected until no info window contains a node
29    whose contents member is equal to the pointer. */
30 extern void add_gcable_pointer (char *pointer);
31
32 /* Grovel the list of info windows and gc-able pointers finding those
33    node->contents which are collectible, and free them. */
34 extern void gc_pointers (void);
35
36 #endif /* not INFO_GC_H */