xref: /plan9/sys/src/cmd/gs/src/igcstr.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1995 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: igcstr.h,v 1.6 2005/09/05 13:58:55 leonardo Exp $ */
18 /* Internal interface to string garbage collector */
19 
20 #ifndef igcstr_INCLUDED
21 #  define igcstr_INCLUDED
22 
23 /* Exported by ilocate.c for igcstr.c */
24 chunk_t *gc_locate(const void *, gc_state_t *);
25 
26 /* Exported by igcstr.c for igc.c */
27 void gc_strings_set_marks(chunk_t *, bool);
28 bool gc_string_mark(const byte *, uint, bool, gc_state_t *);
29 void gc_strings_clear_reloc(chunk_t *);
30 void gc_strings_set_reloc(chunk_t *);
31 void gc_strings_compact(chunk_t *);
32 string_proc_reloc(igc_reloc_string);
33 const_string_proc_reloc(igc_reloc_const_string);
34 param_string_proc_reloc(igc_reloc_param_string);
35 
36 #endif /* igcstr_INCLUDED */
37