OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* svsfnt.h */ | 3 /* svsfnt.h */ |
4 /* */ | 4 /* */ |
5 /* The FreeType SFNT table loading service (specification). */ | 5 /* The FreeType SFNT table loading service (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2003, 2004 by */ | 7 /* Copyright 2003, 2004, 2009, 2012 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 FT_ULong *length ); | 62 FT_ULong *length ); |
63 | 63 |
64 | 64 |
65 FT_DEFINE_SERVICE( SFNT_Table ) | 65 FT_DEFINE_SERVICE( SFNT_Table ) |
66 { | 66 { |
67 FT_SFNT_TableLoadFunc load_table; | 67 FT_SFNT_TableLoadFunc load_table; |
68 FT_SFNT_TableGetFunc get_table; | 68 FT_SFNT_TableGetFunc get_table; |
69 FT_SFNT_TableInfoFunc table_info; | 69 FT_SFNT_TableInfoFunc table_info; |
70 }; | 70 }; |
71 | 71 |
| 72 |
72 #ifndef FT_CONFIG_OPTION_PIC | 73 #ifndef FT_CONFIG_OPTION_PIC |
73 | 74 |
74 #define FT_DEFINE_SERVICE_SFNT_TABLEREC(class_, load_, get_, info_) \ | 75 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ |
75 static const FT_Service_SFNT_TableRec class_ = \ | 76 static const FT_Service_SFNT_TableRec class_ = \ |
76 { \ | 77 { \ |
77 load_, get_, info_ \ | 78 load_, get_, info_ \ |
78 }; | 79 }; |
79 | 80 |
80 #else /* FT_CONFIG_OPTION_PIC */ | 81 #else /* FT_CONFIG_OPTION_PIC */ |
81 | 82 |
82 #define FT_DEFINE_SERVICE_SFNT_TABLEREC(class_, load_, get_, info_) \ | 83 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ |
83 void \ | 84 void \ |
84 FT_Init_Class_##class_( FT_Service_SFNT_TableRec* clazz ) \ | 85 FT_Init_Class_ ## class_( FT_Service_SFNT_TableRec* clazz ) \ |
85 { \ | 86 { \ |
86 clazz->load_table = load_; \ | 87 clazz->load_table = load_; \ |
87 clazz->get_table = get_; \ | 88 clazz->get_table = get_; \ |
88 clazz->table_info = info_; \ | 89 clazz->table_info = info_; \ |
89 } | 90 } |
90 | 91 |
91 #endif /* FT_CONFIG_OPTION_PIC */ | 92 #endif /* FT_CONFIG_OPTION_PIC */ |
92 | 93 |
93 /* */ | 94 /* */ |
94 | 95 |
95 | 96 |
96 FT_END_HEADER | 97 FT_END_HEADER |
97 | 98 |
98 | 99 |
99 #endif /* __SVSFNT_H__ */ | 100 #endif /* __SVSFNT_H__ */ |
100 | 101 |
101 | 102 |
102 /* END */ | 103 /* END */ |
OLD | NEW |