ReactOS  0.4.14-dev-1112-g2b067d6
psstack.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* psstack.h */
4 /* */
5 /* Adobe's code for emulating a CFF stack (specification). */
6 /* */
7 /* Copyright 2007-2013 Adobe Systems Incorporated. */
8 /* */
9 /* This software, and all works of authorship, whether in source or */
10 /* object code form as indicated by the copyright notice(s) included */
11 /* herein (collectively, the "Work") is made available, and may only be */
12 /* used, modified, and distributed under the FreeType Project License, */
13 /* LICENSE.TXT. Additionally, subject to the terms and conditions of the */
14 /* FreeType Project License, each contributor to the Work hereby grants */
15 /* to any individual or legal entity exercising permissions granted by */
16 /* the FreeType Project License and this section (hereafter, "You" or */
17 /* "Your") a perpetual, worldwide, non-exclusive, no-charge, */
18 /* royalty-free, irrevocable (except as stated in this section) patent */
19 /* license to make, have made, use, offer to sell, sell, import, and */
20 /* otherwise transfer the Work, where such license applies only to those */
21 /* patent claims licensable by such contributor that are necessarily */
22 /* infringed by their contribution(s) alone or by combination of their */
23 /* contribution(s) with the Work to which such contribution(s) was */
24 /* submitted. If You institute patent litigation against any entity */
25 /* (including a cross-claim or counterclaim in a lawsuit) alleging that */
26 /* the Work or a contribution incorporated within the Work constitutes */
27 /* direct or contributory patent infringement, then any patent licenses */
28 /* granted to You under this License for that Work shall terminate as of */
29 /* the date such litigation is filed. */
30 /* */
31 /* By using, modifying, or distributing the Work you indicate that you */
32 /* have read and understood the terms and conditions of the */
33 /* FreeType Project License as well as those provided in this section, */
34 /* and you accept them fully. */
35 /* */
36 /***************************************************************************/
37 
38 
39 #ifndef PSSTACK_H_
40 #define PSSTACK_H_
41 
42 
44 
45 
46  /* CFF operand stack; specified maximum of 48 or 192 values */
47  typedef struct CF2_StackNumber_
48  {
49  union
50  {
51  CF2_Fixed r; /* 16.16 fixed point */
52  CF2_Frac f; /* 2.30 fixed point (for font matrix) */
54  } u;
55 
57 
59 
60 
61  typedef struct CF2_StackRec_
62  {
68 
70 
71 
74  FT_Error* error,
75  FT_UInt stackSize );
76  FT_LOCAL( void )
78 
81 
82  FT_LOCAL( void )
84  CF2_Int val );
85  FT_LOCAL( void )
87  CF2_Fixed val );
88 
89  FT_LOCAL( CF2_Int )
93 
96  CF2_UInt idx );
97  FT_LOCAL( void )
99  CF2_UInt idx,
100  CF2_Fixed val );
101 
102  FT_LOCAL( void )
104  CF2_UInt num );
105 
106  FT_LOCAL( void )
108  CF2_Int count,
109  CF2_Int idx );
110 
111  FT_LOCAL( void )
113 
114 
116 
117 
118 #endif /* PSSTACK_H_ */
119 
120 
121 /* END */
#define CF2_UInt
Definition: pstypes.h:64
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
#define FT_END_HEADER
Definition: ftheader.h:54
FT_Memory memory
Definition: psstack.h:63
union CF2_StackNumber_::@3887 u
FT_Int32 CF2_Frac
Definition: psfixed.h:49
cf2_stack_pop(CF2_Stack stack, CF2_UInt num)
Definition: psstack.c:229
cf2_stack_clear(CF2_Stack stack)
Definition: psstack.c:322
GLuint GLuint GLsizei count
Definition: gl.h:1545
cf2_stack_pushFixed(CF2_Stack stack, CF2_Fixed val)
Definition: psstack.c:123
CF2_Frac f
Definition: psstack.h:52
CF2_NumberType type
Definition: psstack.h:56
static char memory[1024 *256]
Definition: process.c:116
cf2_stack_roll(CF2_Stack stack, CF2_Int count, CF2_Int idx)
Definition: psstack.c:242
cf2_stack_popFixed(CF2_Stack stack)
Definition: psstack.c:162
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
#define FT_LOCAL(x)
Definition: ftconfig.h:387
unsigned int idx
Definition: utils.c:41
CF2_StackNumber * top
Definition: psstack.h:66
GLuint GLfloat * val
Definition: glext.h:7180
Definition: _stack.h:47
cf2_stack_popInt(CF2_Stack stack)
Definition: psstack.c:140
GLuint GLuint num
Definition: glext.h:9618
cf2_stack_init(FT_Memory memory, FT_Error *error, FT_UInt stackSize)
Definition: psstack.c:53
FT_BEGIN_HEADER struct CF2_StackNumber_ CF2_StackNumber
CF2_StackNumber * buffer
Definition: psstack.h:65
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
cf2_stack_getReal(CF2_Stack stack, CF2_UInt idx)
Definition: psstack.c:187
FT_UInt stackSize
Definition: psstack.h:67
FT_Error * error
Definition: psstack.h:64
cf2_stack_free(CF2_Stack stack)
Definition: psstack.c:84
unsigned int FT_UInt
Definition: fttypes.h:231
cf2_stack_setReal(CF2_Stack stack, CF2_UInt idx, CF2_Fixed val)
Definition: psstack.c:212
#define CF2_Int
Definition: pstypes.h:65
CF2_Int i
Definition: psstack.h:53
CF2_Fixed r
Definition: psstack.h:51
struct CF2_StackRec_ * CF2_Stack
cf2_stack_pushInt(CF2_Stack stack, CF2_Int val)
Definition: psstack.c:107
enum CF2_NumberType_ CF2_NumberType
cf2_stack_count(CF2_Stack stack)
Definition: psstack.c:100
#define CF2_Fixed
Definition: psfixed.h:48
struct CF2_StackRec_ CF2_StackRec