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

« back to all changes in this revision

Viewing changes to src/igcstr.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: igcstr.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: igcstr.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* String GC routines for Ghostscript */
16
16
#include "memory_.h"
17
17
#include "ghost.h"
21
21
#include "igcstr.h"
22
22
 
23
23
/* Forward references */
24
 
private bool gc_mark_string(const byte *, uint, bool, const chunk_t *);
 
24
static bool gc_mark_string(const byte *, uint, bool, const chunk_t *);
25
25
 
26
26
/* (Un)mark the strings in a chunk. */
27
27
void
57
57
#endif
58
58
 
59
59
/* (Un)mark a string in a known chunk.  Return true iff any new marks. */
60
 
private bool
 
60
static bool
61
61
gc_mark_string(const byte * ptr, uint size, bool set, const chunk_t * cp)
62
62
{
63
63
    uint offset = ptr - cp->sbase;
189
189
}
190
190
 
191
191
/* Count the 0-bits in a byte. */
192
 
private const byte count_zero_bits_table[256] =
 
192
static const byte count_zero_bits_table[256] =
193
193
{
194
194
#define o4(n) n,n-1,n-1,n-2
195
195
#define o16(n) o4(n),o4(n-1),o4(n-1),o4(n-2)