vrshoot
diff libs/ft2static/freetype/ftmoderr.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/ftmoderr.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,155 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* ftmoderr.h */ 1.7 +/* */ 1.8 +/* FreeType module error offsets (specification). */ 1.9 +/* */ 1.10 +/* Copyright 2001, 2002, 2003, 2004, 2005 by */ 1.11 +/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 1.12 +/* */ 1.13 +/* This file is part of the FreeType project, and may only be used, */ 1.14 +/* modified, and distributed under the terms of the FreeType project */ 1.15 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.16 +/* this file you indicate that you have read the license and */ 1.17 +/* understand and accept it fully. */ 1.18 +/* */ 1.19 +/***************************************************************************/ 1.20 + 1.21 + 1.22 + /*************************************************************************/ 1.23 + /* */ 1.24 + /* This file is used to define the FreeType module error offsets. */ 1.25 + /* */ 1.26 + /* The lower byte gives the error code, the higher byte gives the */ 1.27 + /* module. The base module has error offset 0. For example, the error */ 1.28 + /* `FT_Err_Invalid_File_Format' has value 0x003, the error */ 1.29 + /* `TT_Err_Invalid_File_Format' has value 0x1103, the error */ 1.30 + /* `T1_Err_Invalid_File_Format' has value 0x1203, etc. */ 1.31 + /* */ 1.32 + /* Undefine the macro FT_CONFIG_OPTION_USE_MODULE_ERRORS in ftoption.h */ 1.33 + /* to make the higher byte always zero (disabling the module error */ 1.34 + /* mechanism). */ 1.35 + /* */ 1.36 + /* It can also be used to create a module error message table easily */ 1.37 + /* with something like */ 1.38 + /* */ 1.39 + /* { */ 1.40 + /* #undef __FTMODERR_H__ */ 1.41 + /* #define FT_MODERRDEF( e, v, s ) { FT_Mod_Err_ ## e, s }, */ 1.42 + /* #define FT_MODERR_START_LIST { */ 1.43 + /* #define FT_MODERR_END_LIST { 0, 0 } }; */ 1.44 + /* */ 1.45 + /* const struct */ 1.46 + /* { */ 1.47 + /* int mod_err_offset; */ 1.48 + /* const char* mod_err_msg */ 1.49 + /* } ft_mod_errors[] = */ 1.50 + /* */ 1.51 + /* #include FT_MODULE_ERRORS_H */ 1.52 + /* } */ 1.53 + /* */ 1.54 + /* To use such a table, all errors must be ANDed with 0xFF00 to remove */ 1.55 + /* the error code. */ 1.56 + /* */ 1.57 + /*************************************************************************/ 1.58 + 1.59 + 1.60 +#ifndef __FTMODERR_H__ 1.61 +#define __FTMODERR_H__ 1.62 + 1.63 + 1.64 + /*******************************************************************/ 1.65 + /*******************************************************************/ 1.66 + /***** *****/ 1.67 + /***** SETUP MACROS *****/ 1.68 + /***** *****/ 1.69 + /*******************************************************************/ 1.70 + /*******************************************************************/ 1.71 + 1.72 + 1.73 +#undef FT_NEED_EXTERN_C 1.74 + 1.75 +#ifndef FT_MODERRDEF 1.76 + 1.77 +#ifdef FT_CONFIG_OPTION_USE_MODULE_ERRORS 1.78 +#define FT_MODERRDEF( e, v, s ) FT_Mod_Err_ ## e = v, 1.79 +#else 1.80 +#define FT_MODERRDEF( e, v, s ) FT_Mod_Err_ ## e = 0, 1.81 +#endif 1.82 + 1.83 +#define FT_MODERR_START_LIST enum { 1.84 +#define FT_MODERR_END_LIST FT_Mod_Err_Max }; 1.85 + 1.86 +#ifdef __cplusplus 1.87 +#define FT_NEED_EXTERN_C 1.88 + extern "C" { 1.89 +#endif 1.90 + 1.91 +#endif /* !FT_MODERRDEF */ 1.92 + 1.93 + 1.94 + /*******************************************************************/ 1.95 + /*******************************************************************/ 1.96 + /***** *****/ 1.97 + /***** LIST MODULE ERROR BASES *****/ 1.98 + /***** *****/ 1.99 + /*******************************************************************/ 1.100 + /*******************************************************************/ 1.101 + 1.102 + 1.103 +#ifdef FT_MODERR_START_LIST 1.104 + FT_MODERR_START_LIST 1.105 +#endif 1.106 + 1.107 + 1.108 + FT_MODERRDEF( Base, 0x000, "base module" ) 1.109 + FT_MODERRDEF( Autofit, 0x100, "autofitter module" ) 1.110 + FT_MODERRDEF( BDF, 0x200, "BDF module" ) 1.111 + FT_MODERRDEF( Cache, 0x300, "cache module" ) 1.112 + FT_MODERRDEF( CFF, 0x400, "CFF module" ) 1.113 + FT_MODERRDEF( CID, 0x500, "CID module" ) 1.114 + FT_MODERRDEF( Gzip, 0x600, "Gzip module" ) 1.115 + FT_MODERRDEF( LZW, 0x700, "LZW module" ) 1.116 + FT_MODERRDEF( OTvalid, 0x800, "OpenType validation module" ) 1.117 + FT_MODERRDEF( PCF, 0x900, "PCF module" ) 1.118 + FT_MODERRDEF( PFR, 0xA00, "PFR module" ) 1.119 + FT_MODERRDEF( PSaux, 0xB00, "PS auxiliary module" ) 1.120 + FT_MODERRDEF( PShinter, 0xC00, "PS hinter module" ) 1.121 + FT_MODERRDEF( PSnames, 0xD00, "PS names module" ) 1.122 + FT_MODERRDEF( Raster, 0xE00, "raster module" ) 1.123 + FT_MODERRDEF( SFNT, 0xF00, "SFNT module" ) 1.124 + FT_MODERRDEF( Smooth, 0x1000, "smooth raster module" ) 1.125 + FT_MODERRDEF( TrueType, 0x1100, "TrueType module" ) 1.126 + FT_MODERRDEF( Type1, 0x1200, "Type 1 module" ) 1.127 + FT_MODERRDEF( Type42, 0x1300, "Type 42 module" ) 1.128 + FT_MODERRDEF( Winfonts, 0x1400, "Windows FON/FNT module" ) 1.129 + 1.130 + 1.131 +#ifdef FT_MODERR_END_LIST 1.132 + FT_MODERR_END_LIST 1.133 +#endif 1.134 + 1.135 + 1.136 + /*******************************************************************/ 1.137 + /*******************************************************************/ 1.138 + /***** *****/ 1.139 + /***** CLEANUP *****/ 1.140 + /***** *****/ 1.141 + /*******************************************************************/ 1.142 + /*******************************************************************/ 1.143 + 1.144 + 1.145 +#ifdef FT_NEED_EXTERN_C 1.146 + } 1.147 +#endif 1.148 + 1.149 +#undef FT_MODERR_START_LIST 1.150 +#undef FT_MODERR_END_LIST 1.151 +#undef FT_MODERRDEF 1.152 +#undef FT_NEED_EXTERN_C 1.153 + 1.154 + 1.155 +#endif /* __FTMODERR_H__ */ 1.156 + 1.157 + 1.158 +/* END */