~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/lib/arch/vms/ft_conf.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the FreeType project */
 
2
 
 
3
/* ft_conf.h for VMS using MMS or MMK */
 
4
 
 
5
 
 
6
/* we need the following because there are some typedefs in this file */
 
7
 
 
8
#ifndef FT_CONF_H
 
9
#define FT_CONF_H
 
10
 
 
11
/* Define to empty if the keyword does not work.  */
 
12
/* #undef const */
 
13
 
 
14
/* Define if you have a working `mmap' system call.  */
 
15
/* #undef HAVE_MMAP */
 
16
 
 
17
/* Define if you have the <stdlib.h> header file.  */
 
18
#define HAVE_STDLIB_H 1
 
19
 
 
20
/* Define if the X Window System is missing or not being used.  */
 
21
/* #undef X_DISPLAY_MISSING */
 
22
 
 
23
/* The number of bytes in a int.  */
 
24
#define SIZEOF_INT 4
 
25
 
 
26
/* The number of bytes in a long.  */
 
27
#define SIZEOF_LONG 4
 
28
 
 
29
/* Define if you have the getpagesize function.  */
 
30
#define HAVE_GETPAGESIZE 1
 
31
 
 
32
/* Define if you have the memcpy function.  */
 
33
#define HAVE_MEMCPY 1
 
34
 
 
35
/* Define if you have the memmove function.  */
 
36
#define HAVE_MEMMOVE 1
 
37
 
 
38
/* Define if you have the <fcntl.h> header file.  */
 
39
#define HAVE_FCNTL_H 1
 
40
 
 
41
/* Define if you have the <unistd.h> header file.  */
 
42
#define HAVE_UNISTD_H 1
 
43
 
 
44
/* Define if you have the <locale.h> header file.  */
 
45
#define HAVE_LOCALE_H 1
 
46
 
 
47
/* Define if you have the <libintl.h> header file.  */
 
48
/* #undef HAVE_LIBINTL_H */
 
49
 
 
50
/* Define if you have the libintl library.  */
 
51
/* #undef HAVE_LIBINTL */
 
52
 
 
53
/**********************************************************************/
 
54
/*                                                                    */
 
55
/*  The following configuration macros can be tweaked manually by     */
 
56
/*  a developer to turn on or off certain features or options in the  */
 
57
/*  TrueType engine. This may be useful to tune it for specific       */
 
58
/*  purposes..                                                        */
 
59
/*                                                                    */
 
60
/**********************************************************************/
 
61
 
 
62
/*************************************************************************/
 
63
/* Define this if the underlying operating system uses a different       */
 
64
/* character width than 8bit for file names.  You must then also supply  */
 
65
/* a typedef declaration for defining 'TT_Text'.  Default is off.        */
 
66
 
 
67
/* #undef HAVE_TT_TEXT */
 
68
 
 
69
 
 
70
/*************************************************************************/
 
71
/* Define this if you want to generate code to support engine extensions */
 
72
/* Default is on, but if you're satisfied by the basic services provided */
 
73
/* by the engine and need no extensions, undefine this configuration     */
 
74
/* macro to save a few more bytes.                                       */
 
75
 
 
76
#define  TT_CONFIG_OPTION_EXTEND_ENGINE
 
77
 
 
78
 
 
79
/*************************************************************************/
 
80
/* Define this if you want to generate code to support gray-scaling,     */
 
81
/* a.k.a. font-smoothing or anti-aliasing. Default is on, but you can    */
 
82
/* disable it if you don't need it.                                      */
 
83
 
 
84
#define  TT_CONFIG_OPTION_GRAY_SCALING
 
85
 
 
86
 
 
87
/*************************************************************************/
 
88
/* Define this if you want to completely disable the use of the bytecode */
 
89
/* interpreter.  Doing so will produce a much smaller library, but the   */
 
90
/* quality of the rendered glyphs will enormously suffer from this.      */
 
91
/*                                                                       */
 
92
/* This switch was introduced due to the Apple patents issue which       */
 
93
/* emerged recently on the FreeType lists.  We still do not have Apple's */
 
94
/* opinion on the subject and will change this as soon as we have.       */
 
95
 
 
96
#undef   TT_CONFIG_OPTION_NO_INTERPRETER
 
97
 
 
98
 
 
99
/*************************************************************************/
 
100
/* Define this if you want to use a big 'switch' statement within the    */
 
101
/* bytecode interpreter. Because some non-optimizing compilers are not   */
 
102
/* able to produce jump tables from such statements, undefining this     */
 
103
/* configuration macro will generate the appropriate C jump table in     */
 
104
/* ttinterp.c. If you use an optimizing compiler, you should leave it    */
 
105
/* defined for better performance and code compactness..                 */
 
106
 
 
107
#define  TT_CONFIG_OPTION_INTERPRETER_SWITCH
 
108
 
 
109
 
 
110
/*************************************************************************/
 
111
/* Define this if you want to build a 'static' version of the TrueType   */
 
112
/* bytecode interpreter. This will produce much bigger code, which       */
 
113
/* _may_ be faster on some architectures..                               */
 
114
/*                                                                       */
 
115
/* Do NOT DEFINE THIS is you build a thread-safe version of the engine   */
 
116
/*                                                                       */
 
117
#undef TT_CONFIG_OPTION_STATIC_INTERPRETER
 
118
 
 
119
 
 
120
/*************************************************************************/
 
121
/* Define this if you want to build a 'static' version of the scan-line  */
 
122
/* converter (the component which in charge of converting outlines into  */
 
123
/* bitmaps). This will produce a bigger object file for "ttraster.c",    */
 
124
/* which _may_ be faster on some architectures..                         */
 
125
/*                                                                       */
 
126
/* Do NOT DEFINE THIS is you build a thread-safe version of the engine   */
 
127
/*                                                                       */
 
128
#undef  TT_CONFIG_OPTION_STATIC_RASTER
 
129
 
 
130
 
 
131
 
 
132
/*************************************************************************/
 
133
/* Define TT_CONFIG_THREAD_SAFE if you want to build a thread-safe       */
 
134
/* version of the library.                                               */
 
135
 
 
136
/* #undef  TT_CONFIG_OPTION_THREAD_SAFE */
 
137
 
 
138
 
 
139
/**********************************************************************/
 
140
/*                                                                    */
 
141
/*  The following macros are used to define the debug level, as well  */
 
142
/*  as individual tracing levels for each component. There are        */
 
143
/*  currently three modes of operation :                              */
 
144
/*                                                                    */
 
145
/*  - trace mode (define DEBUG_LEVEL_TRACE)                           */
 
146
/*                                                                    */
 
147
/*      The engine prints all error messages, as well as tracing      */
 
148
/*      ones, filtered by each component's level                      */
 
149
/*                                                                    */
 
150
/*  - debug mode (define DEBUG_LEVEL_ERROR)                           */
 
151
/*                                                                    */
 
152
/*      Disable tracing, but keeps error output and assertion         */
 
153
/*      checks.                                                       */
 
154
/*                                                                    */
 
155
/*  - release mode (don't define anything)                            */
 
156
/*                                                                    */
 
157
/*      Don't include error-checking or tracing code in the           */
 
158
/*      engine's code. Ideal for releases.                            */
 
159
/*                                                                    */
 
160
/* NOTE :                                                             */
 
161
/*                                                                    */
 
162
/*   Each component's tracing level is defined in its own source.     */
 
163
/*                                                                    */
 
164
/**********************************************************************/
 
165
 
 
166
/* Define if you want to use the tracing debug mode */
 
167
/* #undef  DEBUG_LEVEL_TRACE */
 
168
 
 
169
/* Define if you want to use the error debug mode - ignored if */
 
170
/* DEBUG_LEVEL_TRACE is defined                                */
 
171
/* #undef  DEBUG_LEVEL_ERROR */
 
172
 
 
173
 
 
174
/**************************************************************************/
 
175
/* Definition of various integer sizes. These types are used by ttcalc    */
 
176
/* and ttinterp (for the 64-bit integers) only..                          */
 
177
 
 
178
#if SIZEOF_INT == 4
 
179
 
 
180
  typedef signed int      TT_Int32;
 
181
  typedef unsigned int    TT_Word32;
 
182
 
 
183
#elif SIZEOF_LONG == 4
 
184
 
 
185
  typedef signed long     TT_Int32;
 
186
  typedef unsigned long   TT_Word32;
 
187
 
 
188
#else
 
189
#error "no 32bit type found"
 
190
#endif
 
191
 
 
192
#if SIZEOF_LONG == 8
 
193
 
 
194
/* LONG64 must be defined when a 64-bit type is available */
 
195
/* INT64 must then be defined to this type..              */
 
196
#define LONG64
 
197
#define INT64   long
 
198
 
 
199
#else
 
200
 
 
201
/* GCC provides the non-ANSI 'long long' 64-bit type.  You can activate    */
 
202
/* by defining the TT_USE_LONG_LONG macro in 'ft_conf.h'.  Note that this  */
 
203
/* will produce many -ansi warnings during library compilation.            */
 
204
#ifdef TT_USE_LONG_LONG
 
205
 
 
206
#define LONG64
 
207
#define INT64   long long
 
208
 
 
209
#endif /* TT_USE_LONG_LONG */
 
210
#endif
 
211
 
 
212
#endif /* FT_CONF_H */
 
213
 
 
214
 
 
215
/* END */