3 # This script generates the required files for supporting the debug
4 # channels used throught the code.
5 # The generated files are
8 # The script must be run in the root directory of the project.
10 # Dimitrie O. Paun <dimi@cs.toronto.edu>
12 DEBUG_H
="include/debug.h"
13 DEBUG_DEFS_H
="include/debugdefs.h"
15 DEBUG_CHANNELS
="$( tools/find_debug_channels )"
16 DEBUG_CLASSES
="fixme err warn trace"
20 /* Do not modify this file -- it is automatically generated! */
22 #ifndef __WINE_DEBUGTOOLS_H
23 #include "debugtools.h"
27 echo "/* Definitions for channels identifiers */"
30 for ch
in $DEBUG_CHANNELS
32 echo "#define dbch_${ch} $chno"
36 echo "/* Definitions for classes identifiers */"
38 for cl
in $DEBUG_CLASSES
40 echo "#define dbcl_${cl} $clno"
45 # Now, on the last step, we proceed to construct
46 # the definitions to be used by the main function.
47 # These will be stored in include/debugdefs.h
50 /* Do not modify this file -- it is automatically generated! */
52 #ifndef __WINE_DEBUGTOOLS_H
53 #include "debugtools.h"
56 #define DEBUG_CHANNEL_COUNT $chno
58 short debug_msg_enabled[][DEBUG_CLASS_COUNT] = {
61 for ch
in $DEBUG_CHANNELS
67 echo 'const char* debug_ch_name[] = {'
68 for ch
in $DEBUG_CHANNELS
74 echo 'const char* debug_cl_name[] = {'
75 for ch
in $DEBUG_CLASSES
83 #endif /*DEBUG_RUNTIME*/
85 /* end of automatically generated debug.h */