~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/igcref.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: igcref.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: igcref.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* ref garbage collector for Ghostscript */
16
16
#include "memory_.h"
17
17
#include "ghost.h"
40
40
 * Define the 'structure' type descriptor for refs.
41
41
 * This is special because it has different shared procs.
42
42
 */
43
 
private gc_proc_clear_reloc(refs_clear_reloc);
44
 
private gc_proc_set_reloc(refs_set_reloc);
45
 
private gc_proc_compact(refs_compact);
46
 
private const struct_shared_procs_t refs_shared_procs =
 
43
static gc_proc_clear_reloc(refs_clear_reloc);
 
44
static gc_proc_set_reloc(refs_set_reloc);
 
45
static gc_proc_compact(refs_compact);
 
46
static const struct_shared_procs_t refs_shared_procs =
47
47
{refs_clear_reloc, refs_set_reloc, refs_compact};
48
 
private struct_proc_clear_marks(refs_clear_marks);
49
 
private struct_proc_reloc_ptrs(refs_do_reloc);
 
48
static struct_proc_clear_marks(refs_clear_marks);
 
49
static struct_proc_reloc_ptrs(refs_do_reloc);
50
50
const gs_memory_struct_type_t st_refs =
51
51
{sizeof(ref), "refs", &refs_shared_procs, refs_clear_marks, 0, refs_do_reloc};
52
52
 
102
102
}
103
103
 
104
104
/* Unmarking routine for ref objects. */
105
 
private void
 
105
static void
106
106
refs_clear_marks(const gs_memory_t *cmem, 
107
107
                 void /*obj_header_t */ *vptr, uint size,
108
108
                 const gs_memory_struct_type_t * pstype)
174
174
 */
175
175
 
176
176
/* Clear the relocation for a ref object. */
177
 
private void
 
177
static void
178
178
refs_clear_reloc(obj_header_t *hdr, uint size)
179
179
{
180
180
    ref_packed *rp = (ref_packed *) (hdr + 1);
197
197
}
198
198
 
199
199
/* Set the relocation for a ref object. */
200
 
private bool
 
200
static bool
201
201
refs_set_reloc(obj_header_t * hdr, uint reloc, uint size)
202
202
{
203
203
    ref_packed *rp = (ref_packed *) (hdr + 1);
369
369
/* ------ Relocation phase ------ */
370
370
 
371
371
/* Relocate all the pointers in a block of refs. */
372
 
private void
 
372
static void
373
373
refs_do_reloc(void /*obj_header_t */ *vptr, uint size,
374
374
              const gs_memory_struct_type_t * pstype, gc_state_t * gcst)
375
375
{
660
660
 
661
661
/* Compact a ref object. */
662
662
/* Remove the marks at the same time. */
663
 
private void
 
663
static void
664
664
refs_compact(const gs_memory_t *mem, obj_header_t * pre, obj_header_t * dpre, uint size)
665
665
{
666
666
    ref_packed *dest;