OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftdebug.h */ | 3 /* ftdebug.h */ |
4 /* */ | 4 /* */ |
5 /* Debugging and logging component (specification). */ | 5 /* Debugging and logging component (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2002, 2004, 2006-2009, 2013 by */ | 7 /* Copyright 1996-2002, 2004, 2006-2009, 2013 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 /* IMPORTANT: A description of FreeType's debugging support can be */ | 17 /* IMPORTANT: A description of FreeType's debugging support can be */ |
18 /* found in `docs/DEBUG.TXT'. Read it if you need to use or */ | 18 /* found in `docs/DEBUG.TXT'. Read it if you need to use or */ |
19 /* understand this code. */ | 19 /* understand this code. */ |
20 /* */ | 20 /* */ |
21 /***************************************************************************/ | 21 /***************************************************************************/ |
22 | 22 |
23 | 23 |
24 #ifndef __FTDEBUG_H__ | 24 #ifndef __FTDEBUG_H__ |
25 #define __FTDEBUG_H__ | 25 #define __FTDEBUG_H__ |
26 | 26 |
27 | 27 |
28 #include "../../ft2build.h" | 28 #include <ft2build.h> |
29 #include "../config/ftconfig.h" | 29 #include FT_CONFIG_CONFIG_H |
30 #include "../freetype.h" | 30 #include FT_FREETYPE_H |
31 | 31 |
32 | 32 |
33 FT_BEGIN_HEADER | 33 FT_BEGIN_HEADER |
34 | 34 |
35 | 35 |
36 /* force the definition of FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE */ | 36 /* force the definition of FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE */ |
37 /* is already defined; this simplifies the following #ifdefs */ | 37 /* is already defined; this simplifies the following #ifdefs */ |
38 /* */ | 38 /* */ |
39 #ifdef FT_DEBUG_LEVEL_TRACE | 39 #ifdef FT_DEBUG_LEVEL_TRACE |
40 #undef FT_DEBUG_LEVEL_ERROR | 40 #undef FT_DEBUG_LEVEL_ERROR |
41 #define FT_DEBUG_LEVEL_ERROR | 41 #define FT_DEBUG_LEVEL_ERROR |
42 #endif | 42 #endif |
43 | 43 |
44 | 44 |
45 /*************************************************************************/ | 45 /*************************************************************************/ |
46 /* */ | 46 /* */ |
47 /* Define the trace enums as well as the trace levels array when they */ | 47 /* Define the trace enums as well as the trace levels array when they */ |
48 /* are needed. */ | 48 /* are needed. */ |
49 /* */ | 49 /* */ |
50 /*************************************************************************/ | 50 /*************************************************************************/ |
51 | 51 |
52 #ifdef FT_DEBUG_LEVEL_TRACE | 52 #ifdef FT_DEBUG_LEVEL_TRACE |
53 | 53 |
54 #define FT_TRACE_DEF( x ) trace_ ## x , | 54 #define FT_TRACE_DEF( x ) trace_ ## x , |
55 | 55 |
56 /* defining the enumeration */ | 56 /* defining the enumeration */ |
57 typedef enum FT_Trace_ | 57 typedef enum FT_Trace_ |
58 { | 58 { |
59 #include "fttrace.h" | 59 #include FT_INTERNAL_TRACE_H |
60 trace_count | 60 trace_count |
61 | 61 |
62 } FT_Trace; | 62 } FT_Trace; |
63 | 63 |
64 | 64 |
65 /* defining the array of trace levels, provided by `src/base/ftdebug.c' */ | 65 /* defining the array of trace levels, provided by `src/base/ftdebug.c' */ |
66 extern int ft_trace_levels[trace_count]; | 66 extern int ft_trace_levels[trace_count]; |
67 | 67 |
68 #undef FT_TRACE_DEF | 68 #undef FT_TRACE_DEF |
69 | 69 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 FT_BASE( void ) | 247 FT_BASE( void ) |
248 ft_debug_init( void ); | 248 ft_debug_init( void ); |
249 | 249 |
250 FT_END_HEADER | 250 FT_END_HEADER |
251 | 251 |
252 #endif /* __FTDEBUG_H__ */ | 252 #endif /* __FTDEBUG_H__ */ |
253 | 253 |
254 | 254 |
255 /* END */ | 255 /* END */ |
OLD | NEW |