OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftrfork.h */ | 3 /* ftrfork.h */ |
4 /* */ | 4 /* */ |
5 /* Embedded resource forks accessor (specification). */ | 5 /* Embedded resource forks accessor (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2004, 2006, 2007, 2012, 2013 by */ | 7 /* Copyright 2004-2015 by */ |
8 /* Masatake YAMATO and Redhat K.K. */ | 8 /* Masatake YAMATO and Redhat K.K. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
(...skipping 19 matching lines...) Expand all Loading... |
37 #define FT_RACCESS_N_RULES 9 | 37 #define FT_RACCESS_N_RULES 9 |
38 | 38 |
39 | 39 |
40 /* A structure to describe a reference in a resource by its resource ID */ | 40 /* A structure to describe a reference in a resource by its resource ID */ |
41 /* and internal offset. The `POST' resource expects to be concatenated */ | 41 /* and internal offset. The `POST' resource expects to be concatenated */ |
42 /* by the order of resource IDs instead of its appearance in the file. */ | 42 /* by the order of resource IDs instead of its appearance in the file. */ |
43 | 43 |
44 typedef struct FT_RFork_Ref_ | 44 typedef struct FT_RFork_Ref_ |
45 { | 45 { |
46 FT_UShort res_id; | 46 FT_UShort res_id; |
47 FT_ULong offset; | 47 FT_Long offset; |
48 | 48 |
49 } FT_RFork_Ref; | 49 } FT_RFork_Ref; |
50 | 50 |
51 #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK | 51 #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK |
52 typedef FT_Error | 52 typedef FT_Error |
53 (*ft_raccess_guess_func)( FT_Library library, | 53 (*ft_raccess_guess_func)( FT_Library library, |
54 FT_Stream stream, | 54 FT_Stream stream, |
55 char *base_file_name, | 55 char *base_file_name, |
56 char **result_file_name, | 56 char **result_file_name, |
57 FT_Long *result_offset ); | 57 FT_Long *result_offset ); |
(...skipping 18 matching lines...) Expand all Loading... |
76 */ | 76 */ |
77 typedef struct ft_raccess_guess_rec_ { | 77 typedef struct ft_raccess_guess_rec_ { |
78 ft_raccess_guess_func func; | 78 ft_raccess_guess_func func; |
79 FT_RFork_Rule type; | 79 FT_RFork_Rule type; |
80 } ft_raccess_guess_rec; | 80 } ft_raccess_guess_rec; |
81 | 81 |
82 #ifndef FT_CONFIG_OPTION_PIC | 82 #ifndef FT_CONFIG_OPTION_PIC |
83 | 83 |
84 /* this array is a storage in non-PIC mode, so ; is needed in END */ | 84 /* this array is a storage in non-PIC mode, so ; is needed in END */ |
85 #define CONST_FT_RFORK_RULE_ARRAY_BEGIN( name, type ) \ | 85 #define CONST_FT_RFORK_RULE_ARRAY_BEGIN( name, type ) \ |
86 const type name[] = { | 86 static const type name[] = { |
87 #define CONST_FT_RFORK_RULE_ARRAY_ENTRY( func_suffix, type_suffix ) \ | 87 #define CONST_FT_RFORK_RULE_ARRAY_ENTRY( func_suffix, type_suffix ) \ |
88 { raccess_guess_ ## func_suffix, \ | 88 { raccess_guess_ ## func_suffix, \ |
89 FT_RFork_Rule_ ## type_suffix }, | 89 FT_RFork_Rule_ ## type_suffix }, |
90 #define CONST_FT_RFORK_RULE_ARRAY_END }; | 90 #define CONST_FT_RFORK_RULE_ARRAY_END }; |
91 | 91 |
92 #else /* FT_CONFIG_OPTION_PIC */ | 92 #else /* FT_CONFIG_OPTION_PIC */ |
93 | 93 |
94 /* this array is a function in PIC mode, so no ; is needed in END */ | 94 /* this array is a function in PIC mode, so no ; is needed in END */ |
95 #define CONST_FT_RFORK_RULE_ARRAY_BEGIN( name, type ) \ | 95 #define CONST_FT_RFORK_RULE_ARRAY_BEGIN( name, type ) \ |
96 void \ | 96 void \ |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 FT_Long **offsets, | 257 FT_Long **offsets, |
258 FT_Long *count ); | 258 FT_Long *count ); |
259 | 259 |
260 | 260 |
261 FT_END_HEADER | 261 FT_END_HEADER |
262 | 262 |
263 #endif /* __FTRFORK_H__ */ | 263 #endif /* __FTRFORK_H__ */ |
264 | 264 |
265 | 265 |
266 /* END */ | 266 /* END */ |
OLD | NEW |