OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftstdlib.h */ | 3 /* ftstdlib.h */ |
4 /* */ | 4 /* */ |
5 /* ANSI-specific library and header configuration file (specification */ | 5 /* ANSI-specific library and header configuration file (specification */ |
6 /* only). */ | 6 /* only). */ |
7 /* */ | 7 /* */ |
8 /* Copyright 2002-2007, 2009, 2011-2012 by */ | 8 /* Copyright 2002-2015 by */ |
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
10 /* */ | 10 /* */ |
11 /* This file is part of the FreeType project, and may only be used, */ | 11 /* This file is part of the FreeType project, and may only be used, */ |
12 /* modified, and distributed under the terms of the FreeType project */ | 12 /* modified, and distributed under the terms of the FreeType project */ |
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
14 /* this file you indicate that you have read the license and */ | 14 /* this file you indicate that you have read the license and */ |
15 /* understand and accept it fully. */ | 15 /* understand and accept it fully. */ |
16 /* */ | 16 /* */ |
17 /***************************************************************************/ | 17 /***************************************************************************/ |
18 | 18 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 /**********************************************************************/ | 57 /**********************************************************************/ |
58 | 58 |
59 | 59 |
60 #include <limits.h> | 60 #include <limits.h> |
61 | 61 |
62 #define FT_CHAR_BIT CHAR_BIT | 62 #define FT_CHAR_BIT CHAR_BIT |
63 #define FT_USHORT_MAX USHRT_MAX | 63 #define FT_USHORT_MAX USHRT_MAX |
64 #define FT_INT_MAX INT_MAX | 64 #define FT_INT_MAX INT_MAX |
65 #define FT_INT_MIN INT_MIN | 65 #define FT_INT_MIN INT_MIN |
66 #define FT_UINT_MAX UINT_MAX | 66 #define FT_UINT_MAX UINT_MAX |
| 67 #define FT_LONG_MAX LONG_MAX |
67 #define FT_ULONG_MAX ULONG_MAX | 68 #define FT_ULONG_MAX ULONG_MAX |
68 | 69 |
69 | 70 |
70 /**********************************************************************/ | 71 /**********************************************************************/ |
71 /* */ | 72 /* */ |
72 /* character and string processing */ | 73 /* character and string processing */ |
73 /* */ | 74 /* */ |
74 /**********************************************************************/ | 75 /**********************************************************************/ |
75 | 76 |
76 | 77 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 #define ft_srealloc realloc | 135 #define ft_srealloc realloc |
135 | 136 |
136 | 137 |
137 /**********************************************************************/ | 138 /**********************************************************************/ |
138 /* */ | 139 /* */ |
139 /* miscellaneous */ | 140 /* miscellaneous */ |
140 /* */ | 141 /* */ |
141 /**********************************************************************/ | 142 /**********************************************************************/ |
142 | 143 |
143 | 144 |
144 #define ft_atol atol | 145 #define ft_atol atol |
145 #define ft_labs labs | |
146 | 146 |
147 | 147 |
148 /**********************************************************************/ | 148 /**********************************************************************/ |
149 /* */ | 149 /* */ |
150 /* execution control */ | 150 /* execution control */ |
151 /* */ | 151 /* */ |
152 /**********************************************************************/ | 152 /**********************************************************************/ |
153 | 153 |
154 | 154 |
155 #include <setjmp.h> | 155 #include <setjmp.h> |
156 | 156 |
157 #define ft_jmp_buf jmp_buf /* note: this cannot be a typedef since */ | 157 #define ft_jmp_buf jmp_buf /* note: this cannot be a typedef since */ |
158 /* jmp_buf is defined as a macro */ | 158 /* jmp_buf is defined as a macro */ |
159 /* on certain platforms */ | 159 /* on certain platforms */ |
160 | 160 |
161 #define ft_longjmp longjmp | 161 #define ft_longjmp longjmp |
162 #define ft_setjmp( b ) setjmp( *(ft_jmp_buf*) &(b) ) /* same thing here */ | 162 #define ft_setjmp( b ) setjmp( *(ft_jmp_buf*) &(b) ) /* same thing here */ |
163 | 163 |
164 | 164 |
165 /* the following is only used for debugging purposes, i.e., if */ | 165 /* the following is only used for debugging purposes, i.e., if */ |
166 /* FT_DEBUG_LEVEL_ERROR or FT_DEBUG_LEVEL_TRACE are defined */ | 166 /* FT_DEBUG_LEVEL_ERROR or FT_DEBUG_LEVEL_TRACE are defined */ |
167 | 167 |
168 #include <stdarg.h> | 168 #include <stdarg.h> |
169 | 169 |
170 | 170 |
171 #endif /* __FTSTDLIB_H__ */ | 171 #endif /* __FTSTDLIB_H__ */ |
172 | 172 |
173 | 173 |
174 /* END */ | 174 /* END */ |
OLD | NEW |