41#include FT_CONFIG_CONFIG_H
42#include FT_INTERNAL_OBJECTS_H
43#include FT_INTERNAL_DEBUG_H
55#define FT_COMPONENT trace_init
58#ifndef FT_CONFIG_OPTION_PIC
63#define FT_USE_MODULE( type, x ) extern "C" const type x;
65#define FT_USE_MODULE( type, x ) extern const type x;
68#include FT_CONFIG_MODULES_H
71#define FT_USE_MODULE( type, x ) (const FT_Module_Class*)&(x),
76#include FT_CONFIG_MODULES_H
85#define FT_EXTERNC extern "C"
87#define FT_EXTERNC extern
92#define FT_USE_MODULE( type, x ) \
94 FT_Create_Class_ ## x( FT_Library library, \
95 FT_Module_Class* *output_class ); \
97 FT_Destroy_Class_ ## x( FT_Library library, \
98 FT_Module_Class* clazz );
100#include FT_CONFIG_MODULES_H
104#define FT_USE_MODULE( type, x ) MODULE_CLASS_ ## x,
108#include FT_CONFIG_MODULES_H
109 FT_NUM_MODULE_CLASSES
114#define FT_USE_MODULE( type, x ) \
117 FT_Destroy_Class_ ## x( library, classes[i] ); \
128 BasePIC* pic_container = (BasePIC*)
library->pic_container.base;
131 if ( !pic_container->default_module_classes )
135 classes = pic_container->default_module_classes;
138#include FT_CONFIG_MODULES_H
141 pic_container->default_module_classes =
NULL;
147#define FT_USE_MODULE( type, x ) \
148 error = FT_Create_Class_ ## x( library, &clazz ); \
151 classes[i++] = clazz;
162 BasePIC* pic_container = (BasePIC*)
library->pic_container.base;
167 pic_container->default_module_classes =
NULL;
170 ( FT_NUM_MODULE_CLASSES + 1 ) ) )
174 for (
i = 0;
i < FT_NUM_MODULE_CLASSES;
i++ )
176 classes[FT_NUM_MODULE_CLASSES] =
NULL;
180#include FT_CONFIG_MODULES_H
184 ft_destroy_default_module_classes(
library );
186 pic_container->default_module_classes = classes;
205#ifdef FT_CONFIG_OPTION_PIC
222 " Cannot install `%s', error = 0x%x\n",
223 (*cur)->module_name,
error ));
229#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
231#define MAX_LENGTH 128
243 char property_name[MAX_LENGTH + 1];
244 char property_value[MAX_LENGTH + 1];
256 if ( *
p ==
' ' || *
p ==
'\t' )
261 for (
i = 0;
i < MAX_LENGTH;
i++ )
263 if ( !*
p || *
p ==
':' )
269 if ( !*
p || *
p !=
':' ||
p ==
q )
274 for (
i = 0;
i < MAX_LENGTH;
i++ )
276 if ( !*
p || *
p ==
'=' )
278 property_name[
i] = *
p++;
280 property_name[
i] =
'\0';
282 if ( !*
p || *
p !=
'=' ||
p ==
q )
287 for (
i = 0;
i < MAX_LENGTH;
i++ )
289 if ( !*
p || *
p ==
' ' || *
p ==
'\t' )
291 property_value[
i] = *
p++;
293 property_value[
i] =
'\0';
295 if ( !( *
p ==
'\0' || *
p ==
' ' || *
p ==
'\t' ) ||
p ==
q )
299 ft_property_string_set(
library,
334 FT_ERROR((
"FT_Init_FreeType: cannot find memory manager\n" ));
335 return FT_THROW( Unimplemented_Feature );
362 return FT_THROW( Invalid_Library_Handle );
#define FT_DEFAULT_MODULES_GET
static LPCWSTR LPCWSTR module_name
static LPCWSTR LPCWSTR LPCWSTR env
#define FT_TRACE0(varformat)
#define FT_ERROR(varformat)
FT_Set_Default_Properties(FT_Library library)
static const FT_Module_Class *const ft_default_modules[]
FT_Add_Default_Modules(FT_Library library)
FT_Done_FreeType(FT_Library library)
FT_Init_FreeType(FT_Library *alibrary)
#define FT_ALLOC(ptr, size)
FT_Add_Module(FT_Library library, const FT_Module_Class *clazz)
FT_Done_Library(FT_Library library)
FT_New_Library(FT_Memory memory, FT_Library *alibrary)
FT_Done_Memory(FT_Memory memory)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static char memory[1024 *256]