1/* $NetBSD: gc.h,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $ */ 2 3/* gc.h -- Functions for garbage collecting unused node contents. 4 Id: gc.h,v 1.3 2004/04/11 17:56:45 karl Exp 5 6 This file is part of GNU Info, a program for reading online documentation 7 stored in Info format. 8 9 Copyright (C) 1993, 1997, 2004 Free Software Foundation, Inc. 10 11 This program is free software; you can redistribute it and/or modify 12 it under the terms of the GNU General Public License as published by 13 the Free Software Foundation; either version 2, or (at your option) 14 any later version. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with this program; if not, write to the Free Software 23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 25 Written by Brian Fox (bfox@ai.mit.edu). */ 26 27#ifndef INFO_GC_H 28#define INFO_GC_H 29 30/* Add POINTER to the list of garbage collectible pointers. A pointer 31 is not actually garbage collected until no info window contains a node 32 whose contents member is equal to the pointer. */ 33extern void add_gcable_pointer (char *pointer); 34 35/* Grovel the list of info windows and gc-able pointers finding those 36 node->contents which are collectible, and free them. */ 37extern void gc_pointers (void); 38 39#endif /* not INFO_GC_H */ 40