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

« back to all changes in this revision

Viewing changes to src/istack.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: istack.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: istack.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Manager for expandable stacks of refs */
16
16
#include "memory_.h"
17
17
#include "ghost.h"
27
27
#include "store.h"
28
28
 
29
29
/* Forward references */
30
 
private void init_block(ref_stack_t *pstack, const ref *pblock_array,
 
30
static void init_block(ref_stack_t *pstack, const ref *pblock_array,
31
31
                        uint used);
32
 
private int ref_stack_push_block(ref_stack_t *pstack, uint keep, uint add);
 
32
static int ref_stack_push_block(ref_stack_t *pstack, uint keep, uint add);
33
33
 
34
34
/* GC descriptors and procedures */
35
35
private_st_ref_stack_params();
36
 
private 
 
36
static 
37
37
CLEAR_MARKS_PROC(ref_stack_clear_marks)
38
38
{
39
39
    ref_stack_t *const sptr = vptr;
40
40
 
41
41
    r_clear_attrs(&sptr->current, l_mark);
42
42
}
43
 
private 
 
43
static 
44
44
ENUM_PTRS_WITH(ref_stack_enum_ptrs, ref_stack_t *sptr) return 0;
45
45
case 0: ENUM_RETURN_REF(&sptr->current);
46
46
case 1: return ENUM_OBJ(sptr->params);
47
47
ENUM_PTRS_END
48
 
private RELOC_PTRS_WITH(ref_stack_reloc_ptrs, ref_stack_t *sptr)
 
48
static RELOC_PTRS_WITH(ref_stack_reloc_ptrs, ref_stack_t *sptr)
49
49
{
50
50
    /* Note that the relocation must be a multiple of sizeof(ref_packed) */
51
51
    /* * align_packed_per_ref, but it need not be a multiple of */
492
492
 * are trying to add.  Requires keep <= count.  May return overflow_error or
493
493
 * e_VMerror.
494
494
 */
495
 
private int
 
495
static int
496
496
ref_stack_push_block(ref_stack_t *pstack, uint keep, uint add)
497
497
{
498
498
    const ref_stack_params_t *params = pstack->params;
608
608
/* ------ Internal routines ------ */
609
609
 
610
610
/* Initialize the guards and body of a stack block. */
611
 
private void
 
611
static void
612
612
init_block(ref_stack_t *pstack, const ref *psb, uint used)
613
613
{
614
614
    ref_stack_params_t *params = pstack->params;