~ubuntu-branches/ubuntu/oneiric/ghostscript/oneiric

« back to all changes in this revision

Viewing changes to base/ttload.h

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2011-07-15 16:49:55 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110715164955-uga6qibao6kez05c
Tags: 9.04~dfsg~20110715-0ubuntu1
* New upstream release
   - GIT snapshot from Jult, 12 2011.
* debian/patches/020110406~a54df2d.patch,
  debian/patches/020110408~0791cc8.patch,
  debian/patches/020110408~507cbee.patch,
  debian/patches/020110411~4509a49.patch,
  debian/patches/020110412~78bb9a6.patch,
  debian/patches/020110418~a05ab8a.patch,
  debian/patches/020110420~20b6c78.patch,
  debian/patches/020110420~4ddefa2.patch: Removed upstream patches.
* debian/rules: Generate ABI version number (variable "abi") correctly,
  cutting off repackaging and pre-release parts.
* debian/rules: Added ./lcms2/ directory to DEB_UPSTREAM_REPACKAGE_EXCLUDES.
* debian/copyright: Added lcms2/* to the list of excluded files.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (C) 2001-2006 Artifex Software, Inc.
2
2
   All Rights Reserved.
3
 
  
 
3
 
4
4
   This software is provided AS-IS with no warranty, either express or
5
5
   implied.
6
6
 
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: ttload.h 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id$ */
15
15
 
16
16
/* Changes after FreeType: cut out the TrueType instruction interpreter. */
17
17
 
19
19
 *
20
20
 *  ttload.h                                                    1.1
21
21
 *
22
 
 *    TrueType Tables Loader.                          
 
22
 *    TrueType Tables Loader.
23
23
 *
24
24
 *  Copyright 1996-1998 by
25
25
 *  David Turner, Robert Wilhelm, and Werner Lemberg.
42
42
 
43
43
#include "ttcommon.h"
44
44
 
45
 
 
46
45
#ifdef __cplusplus
47
46
  extern "C" {
48
47
#endif
50
49
  Int  LookUp_TrueType_Table( PFace  face,
51
50
                              Long   tag  );
52
51
 
53
 
  TT_Error  Load_TrueType_Directory        ( PFace  face, 
 
52
  TT_Error  Load_TrueType_Directory        ( PFace  face,
54
53
                                             int    faceIndex );
55
54
 
56
55
  TT_Error  Load_TrueType_MaxProfile       ( PFace  face );
73
72
                               void*  buffer,
74
73
                               Long*  length );
75
74
 
76
 
 
77
75
  TT_Error  Free_TrueType_Names( PFace  face );
78
76
  TT_Error  Free_TrueType_Hdmx ( PFace  face );
79
77
 
80
 
 
81
78
/* The following macros are defined to simplify the writing of */
82
79
/* the various table and glyph loaders.                        */
83
80
 
100
97
#define GET_Short()   ttfReader__Short (r)
101
98
#define GET_Long()    ttfReader__Int (r)
102
99
#define GET_ULong()   ttfReader__UInt(r)
103
 
  
 
100
 
104
101
#ifdef TT_CONFIG_REENTRANT  /* re-entrant implementation */
105
102
 
106
103
/* The following macros define the necessary local */
134
131
          DEFINE_A_STREAM; \
135
132
          DEFINE_A_FRAME
136
133
 
137
 
 
138
134
#define ACCESS_Frame( _size_ ) \
139
135
          ( error = TT_Access_Frame( stream, &frame, _size_ ) )
140
136
#define CHECK_ACCESS_Frame( _size_ ) \
152
148
          ( error = TT_Read_File ( stream, buffer, count ) )
153
149
#define FILE_Read_At( pos, buffer, count ) \
154
150
          ( error = TT_Read_At_File( stream, pos, buffer, count ) )
155
 
  
 
151
 
156
152
#else   /* thread-safe implementation */
157
153
 
158
154
/* Define stream locals with frame -- nothing in thread-safe mode */
176
172
          TT_Error  error; \
177
173
          DEFINE_A_STREAM
178
174
 
179
 
 
180
175
#define ACCESS_Frame( _size_ ) \
181
176
          ( error = TT_Access_Frame( _size_ ) )
182
177
#define CHECK_ACCESS_Frame( _size_ ) \
185
180
          ( error = TT_Forget_Frame() )
186
181
 
187
182
#define GET_Tag4()    TT_Get_Long  ()
188
 
  
 
183
 
189
184
#define FILE_Pos()    TT_File_Pos()
190
185
 
191
186
#define FILE_Seek( _position_ ) \
196
191
          ( error = TT_Read_File ( buffer, count ) )
197
192
#define FILE_Read_At( pos, buffer, count ) \
198
193
          ( error = TT_Read_At_File( pos, buffer, count ) )
199
 
  
 
194
 
200
195
#endif /* TT_CONFIG_REENTRANT */
201
196
 
202
197
#ifdef __cplusplus
205
200
 
206
201
#endif /* TTLOAD_H */
207
202
 
208
 
 
209
203
/* END */