Sun Feb 1 13:24:54 1998 Alexandre Julliard <julliard@lrc.epfl.ch> * [files/drive.c] Added Device= parameter to drive configuration. * [if1632/relay.c] Throw() and Catch() now use the correct CATCHBUF layout (untested). * [tools/build.c] [include/stackframe.h] [loader/task.c] Moved 16-bit stack pointer into thread database. Save current %fs while running 16-bit code. Fri Jan 30 09:25:49 1998 Martin Boehme <boehme@informatik.mu-luebeck.de> * [graphics/mapping.c] Made DPtoLP32 and LPtoDP32 respect world transforms. * [graphics/path.c] [graphics/painting.c] [if1632/gdi.spec] [include/path.h] More path support. * [include/gdi.h] [include/windows.h] [objects/dc.c] [relay/gdi32.spec] Support for Get/SetArcDirection and Get/SetWorldTransform * [windows/hook.c] Fixed a bug in HOOK_Map16To32Common. Thu Jan 29 23:43:18 1998 Douglas Ridgway <ridgway@taiga.gmcl.com> * [graphics/metafiledrv/init.c] [objects/metafile.c] Documentation for metafile related API calls. Fixed a bug to avoid documenting it. * [include/windows.h] Declaration for LoadImage. Thu Jan 29 21:44:45 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk> * [graphics/win16drv/*] Changes to printing code to enable use of printer fonts with the win3.1 postscript driver. Remember to add printer=on to [wine] section of wine.conf . You will also need to disable truetype fonts from control panel. Winword 6.0 and Write seem to be happy with this... * [include/bitmap.h] Fix Widthbytes for 15bpp displays. Tue Jan 27 20:54:08 1998 Kristian Nielsen <kristian.nielsen@risoe.dk> * [tsx11/*] [include/ts*] [tools/make_X11wrappers] Implemented thread-safe X11 wrappers. Tue Jan 27 13:54:09 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu> * [windows/queue.c] Forgot to convert thdb to thread_id. * [misc/registry.c] Sped up Windows 95 registry reading. Changed code to traverse registry as a tree rather than read in all possible keys (including dead ones). Tue Jan 27 12:46:09 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [loader/pe_image.c][Makefile.in][scheduler/thread.c] [libtest/hello5.c] Don't exit() on failed to load referenced dlls. Fixed static tls allocation for multiple threads. WINELIB should now be able to load PE dlls. A sample winelib program, that dynamically loads a internal dll is included. * [graphics/ddraw.c][include/ddraw.h][include/d3d.h] Cleaned up and enhanced further. Added several DirectX5 interface definitions and DirectSurface3 implementation. Stubs for D3D (NOT coming soon, just there so it fails safely). * [multimedia/dsound.c][include/dsound.h] Actually works now for a lot of cases. Some DirectX5 stuff added. Still lacking several features. * [windows/dinput.c][include/dinput.h] Started implementing DirectInput. Doesn't work yet, don't know why. * [if1632/thunk.c][misc/callbacks.c] [win32/kernel.c][include/callbacks.h] Added WOWCallback16Ex, WOWHandle32. * [misc/cpu.c] Fixed GetSystemInfo, IsProcessorFeaturePresent. * [multimedia/joystick.c][multimedia/time.c] Several fixes. Small hack to get timerevents in timeGetTime() loops. Tue Jan 20 11:26:27 1998 Slaven Rezic <eserte@cs.tu-berlin.de> * [configure.in] Fixed check for union semun on FreeBSD systems. Sun Jan 18 23:05:04 1998 Karl Backström <karl_b@geocities.com> * [misc/ole2nls.c] [programs/progman/Sw.rc] [programs/winhelp/Sw.rc] [resources/sysres_Sw.rc] Added/updated Swedish language support. Sun Jan 18 18:49:01 1998 Alex Korobka <alex@trantor.pharm.sunysb.edu> * [misc/winsock.c] [misc/winsock_dns.c] [windows/event.c] [windows/win.c] [windows/dce.c] [windows/winpos.c] Bug fixes. Sun Jan 18 12:45:23 1997 Andreas Mohr <100.30936@germany.net> * [msdos/int25.c] [msdos/int26.c] Implemented "native" absolute disk read/write access. * [msdos/int13.c] [msdos/ioports.c] Enhanced GET DRIVE PARAMETERS (int13 AH=08). * [graphics/win16drv/prtdrv.c] [if1632/gdi.spec] Fixed typos, implemented dmEnumDFonts, Started implementation of dmRealizeObject. * [if1632/compobj.spec] [ole/compobj.c] [relay32/ole32.spec] Stubs CoCreateInstance, CoFreeUnusedLibraries, implemented CoFileTimeNow. * [if1632/kernel.spec] [include/windows.h] [memory/global.c] [memory/string.c] [misc/kernel.c] [misc/Makefile.in] [misc/toolhelp.c] [msdos/int21.c] Implemented GlobalHandleNoRIP, GetFreeMemInfo, DebugFillBuffer, stubs GetSetKernelDOSProc, DiagQuery, DiagOutput, ToolHelpHook (Undocumented Windows). * [if1632/user.spec] [if1632/win32s16.spec] [misc/win32s16.c] Misc stubs. * [if1632/winaspi.spec] [misc/aspi.c] Implemented GetASPIDLLVersion. * [if1632/wprocs.spec] [msdos/int20.c] [msdos/Makefile.in] Added handler for Int 0x20 (terminate program, _very_ old-fashioned). * [misc/w32scomb.c] Implemented Get16DLLAddress() partially (big thanks to Marcus and Alexandre). * [relay32/Makefile.in] [relay32/builtin32.c] [relay32/dplay.spec] Added built-in DPLAY.DLL. * [relay32/winmm.spec] [multimedia/joystick.c] Added joySetThreshold. * [misc/windebug.c] Added WinNotify. * [win32/console.c] Stubs CreateConsoleScreenBuffer, SetConsoleActiveScreenBuffer, WriteConsoleOutput32A. * [windows/user.c] Stub SetEventHook. Sat Jan 17 19:30:35 1998 Matthew Toseland <Paul.Toseland@btinternet.com> * [windows/painting.c] Fixed broken restore-to-maximized. Mon Jan 12 21:25:32 1998 Perceval - Marc Huguet Puig <mhp@tinet.fut.es> * [documentation/wine.man] [include/options.h] [misc/main.c] [ole/ole2nls.c] [resources/sysres.c] [resources/sysres_Ca.rc] [resources/Makefile.in] Added language catalan. (Afegit l'idioma català).
1858 lines
34 KiB
C
1858 lines
34 KiB
C
#include <stdio.h>
|
|
|
|
#define stddeb stdout
|
|
#define stdnimp stdout
|
|
|
|
/* Do not remove this line or change anything below this line */
|
|
|
|
#ifdef DEBUG_NONE_EXT
|
|
#undef DEBUG_ACCEL
|
|
#undef DEBUG_ASPI
|
|
#undef DEBUG_ATOM
|
|
#undef DEBUG_BITBLT
|
|
#undef DEBUG_BITMAP
|
|
#undef DEBUG_CARET
|
|
#undef DEBUG_CDAUDIO
|
|
#undef DEBUG_CLASS
|
|
#undef DEBUG_CLIPBOARD
|
|
#undef DEBUG_CLIPPING
|
|
#undef DEBUG_COMBO
|
|
#undef DEBUG_COMM
|
|
#undef DEBUG_COMMDLG
|
|
#undef DEBUG_CRTDLL
|
|
#undef DEBUG_CURSOR
|
|
#undef DEBUG_DC
|
|
#undef DEBUG_DDE
|
|
#undef DEBUG_DDRAW
|
|
#undef DEBUG_DIALOG
|
|
#undef DEBUG_DLL
|
|
#undef DEBUG_DOSFS
|
|
#undef DEBUG_DRIVER
|
|
#undef DEBUG_DSOUND
|
|
#undef DEBUG_EDIT
|
|
#undef DEBUG_EVENT
|
|
#undef DEBUG_EXEC
|
|
#undef DEBUG_FILE
|
|
#undef DEBUG_FIXUP
|
|
#undef DEBUG_FONT
|
|
#undef DEBUG_GDI
|
|
#undef DEBUG_GLOBAL
|
|
#undef DEBUG_GRAPHICS
|
|
#undef DEBUG_HEAP
|
|
#undef DEBUG_HOOK
|
|
#undef DEBUG_ICON
|
|
#undef DEBUG_INT
|
|
#undef DEBUG_KEY
|
|
#undef DEBUG_KEYBOARD
|
|
#undef DEBUG_LDT
|
|
#undef DEBUG_LISTBOX
|
|
#undef DEBUG_LOCAL
|
|
#undef DEBUG_MCI
|
|
#undef DEBUG_MCIANIM
|
|
#undef DEBUG_MCIWAVE
|
|
#undef DEBUG_MDI
|
|
#undef DEBUG_MENU
|
|
#undef DEBUG_MESSAGE
|
|
#undef DEBUG_METAFILE
|
|
#undef DEBUG_MIDI
|
|
#undef DEBUG_MMAUX
|
|
#undef DEBUG_MMIO
|
|
#undef DEBUG_MMSYS
|
|
#undef DEBUG_MMTIME
|
|
#undef DEBUG_MODULE
|
|
#undef DEBUG_MSG
|
|
#undef DEBUG_NONCLIENT
|
|
#undef DEBUG_OLE
|
|
#undef DEBUG_PALETTE
|
|
#undef DEBUG_PROFILE
|
|
#undef DEBUG_PROGRESS
|
|
#undef DEBUG_PROP
|
|
#undef DEBUG_REG
|
|
#undef DEBUG_REGION
|
|
#undef DEBUG_RELAY
|
|
#undef DEBUG_RESOURCE
|
|
#undef DEBUG_SCROLL
|
|
#undef DEBUG_SELECTOR
|
|
#undef DEBUG_SEM
|
|
#undef DEBUG_SENDMSG
|
|
#undef DEBUG_SHM
|
|
#undef DEBUG_STRESS
|
|
#undef DEBUG_STRING
|
|
#undef DEBUG_TASK
|
|
#undef DEBUG_TEXT
|
|
#undef DEBUG_THUNK
|
|
#undef DEBUG_TIMER
|
|
#undef DEBUG_TOOLHELP
|
|
#undef DEBUG_TWEAK
|
|
#undef DEBUG_UPDOWN
|
|
#undef DEBUG_VER
|
|
#undef DEBUG_VIRTUAL
|
|
#undef DEBUG_VXD
|
|
#undef DEBUG_WIN
|
|
#undef DEBUG_WIN16DRV
|
|
#undef DEBUG_WIN32
|
|
#undef DEBUG_WINSOCK
|
|
#undef DEBUG_X11
|
|
#endif
|
|
|
|
#ifdef DEBUG_ALL_EXT
|
|
#define DEBUG_ACCEL
|
|
#define DEBUG_ASPI
|
|
#define DEBUG_ATOM
|
|
#define DEBUG_BITBLT
|
|
#define DEBUG_BITMAP
|
|
#define DEBUG_CARET
|
|
#define DEBUG_CDAUDIO
|
|
#define DEBUG_CLASS
|
|
#define DEBUG_CLIPBOARD
|
|
#define DEBUG_CLIPPING
|
|
#define DEBUG_COMBO
|
|
#define DEBUG_COMM
|
|
#define DEBUG_COMMDLG
|
|
#define DEBUG_CRTDLL
|
|
#define DEBUG_CURSOR
|
|
#define DEBUG_DC
|
|
#define DEBUG_DDE
|
|
#define DEBUG_DDRAW
|
|
#define DEBUG_DIALOG
|
|
#define DEBUG_DLL
|
|
#define DEBUG_DOSFS
|
|
#define DEBUG_DRIVER
|
|
#define DEBUG_DSOUND
|
|
#define DEBUG_EDIT
|
|
#define DEBUG_EVENT
|
|
#define DEBUG_EXEC
|
|
#define DEBUG_FILE
|
|
#define DEBUG_FIXUP
|
|
#define DEBUG_FONT
|
|
#define DEBUG_GDI
|
|
#define DEBUG_GLOBAL
|
|
#define DEBUG_GRAPHICS
|
|
#define DEBUG_HEAP
|
|
#define DEBUG_HOOK
|
|
#define DEBUG_ICON
|
|
#define DEBUG_INT
|
|
#define DEBUG_KEY
|
|
#define DEBUG_KEYBOARD
|
|
#define DEBUG_LDT
|
|
#define DEBUG_LISTBOX
|
|
#define DEBUG_LOCAL
|
|
#define DEBUG_MCI
|
|
#define DEBUG_MCIANIM
|
|
#define DEBUG_MCIWAVE
|
|
#define DEBUG_MDI
|
|
#define DEBUG_MENU
|
|
#define DEBUG_MESSAGE
|
|
#define DEBUG_METAFILE
|
|
#define DEBUG_MIDI
|
|
#define DEBUG_MMAUX
|
|
#define DEBUG_MMIO
|
|
#define DEBUG_MMSYS
|
|
#define DEBUG_MMTIME
|
|
#define DEBUG_MODULE
|
|
#define DEBUG_MSG
|
|
#define DEBUG_NONCLIENT
|
|
#define DEBUG_OLE
|
|
#define DEBUG_PALETTE
|
|
#define DEBUG_PROFILE
|
|
#define DEBUG_PROGRESS
|
|
#define DEBUG_PROP
|
|
#define DEBUG_REG
|
|
#define DEBUG_REGION
|
|
#define DEBUG_RELAY
|
|
#define DEBUG_RESOURCE
|
|
#define DEBUG_SCROLL
|
|
#define DEBUG_SELECTOR
|
|
#define DEBUG_SEM
|
|
#define DEBUG_SENDMSG
|
|
#define DEBUG_SHM
|
|
#define DEBUG_STRESS
|
|
#define DEBUG_STRING
|
|
#define DEBUG_TASK
|
|
#define DEBUG_TEXT
|
|
#define DEBUG_THUNK
|
|
#define DEBUG_TIMER
|
|
#define DEBUG_TOOLHELP
|
|
#define DEBUG_TWEAK
|
|
#define DEBUG_UPDOWN
|
|
#define DEBUG_VER
|
|
#define DEBUG_VIRTUAL
|
|
#define DEBUG_VXD
|
|
#define DEBUG_WIN
|
|
#define DEBUG_WIN16DRV
|
|
#define DEBUG_WIN32
|
|
#define DEBUG_WINSOCK
|
|
#define DEBUG_X11
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#ifdef DEBUG_DEFINE_VARIABLES
|
|
short debug_msg_enabled[]={
|
|
#ifdef DEBUG_ACCEL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_ASPI
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_ATOM
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_BITBLT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_BITMAP
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CARET
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CDAUDIO
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CLASS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CLIPBOARD
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CLIPPING
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_COMBO
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_COMM
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_COMMDLG
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CRTDLL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_CURSOR
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DC
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DDE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DDRAW
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DIALOG
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DLL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DOSFS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DRIVER
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_DSOUND
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_EDIT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_EVENT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_EXEC
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_FILE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_FIXUP
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_FONT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_GDI
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_GLOBAL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_GRAPHICS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_HEAP
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_HOOK
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_ICON
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_INT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_KEY
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_KEYBOARD
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_LDT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_LISTBOX
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_LOCAL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MCI
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MCIANIM
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MCIWAVE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MDI
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MENU
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MESSAGE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_METAFILE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MIDI
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MMAUX
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MMIO
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MMSYS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MMTIME
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MODULE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_MSG
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_NONCLIENT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_OLE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_PALETTE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_PROFILE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_PROGRESS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_PROP
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_REG
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_REGION
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_RELAY
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_RESOURCE
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_SCROLL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_SELECTOR
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_SEM
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_SENDMSG
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_SHM
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_STRESS
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_STRING
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_TASK
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_TEXT
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_THUNK
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_TIMER
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_TOOLHELP
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_TWEAK
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_UPDOWN
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_VER
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_VIRTUAL
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_VXD
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_WIN
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_WIN16DRV
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_WIN32
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_WINSOCK
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
#ifdef DEBUG_X11
|
|
1,
|
|
#else
|
|
0,
|
|
#endif
|
|
0
|
|
};
|
|
#else
|
|
extern short debug_msg_enabled[];
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_accel if(!debug_msg_enabled[0]) ; else fprintf
|
|
#define debugging_accel debug_msg_enabled[0]
|
|
#else
|
|
#ifdef DEBUG_ACCEL
|
|
#define dprintf_accel fprintf
|
|
#define debugging_accel 1
|
|
#else
|
|
#define dprintf_accel while(0) fprintf
|
|
#define debugging_accel 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_aspi if(!debug_msg_enabled[1]) ; else fprintf
|
|
#define debugging_aspi debug_msg_enabled[1]
|
|
#else
|
|
#ifdef DEBUG_ASPI
|
|
#define dprintf_aspi fprintf
|
|
#define debugging_aspi 1
|
|
#else
|
|
#define dprintf_aspi while(0) fprintf
|
|
#define debugging_aspi 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_atom if(!debug_msg_enabled[2]) ; else fprintf
|
|
#define debugging_atom debug_msg_enabled[2]
|
|
#else
|
|
#ifdef DEBUG_ATOM
|
|
#define dprintf_atom fprintf
|
|
#define debugging_atom 1
|
|
#else
|
|
#define dprintf_atom while(0) fprintf
|
|
#define debugging_atom 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_bitblt if(!debug_msg_enabled[3]) ; else fprintf
|
|
#define debugging_bitblt debug_msg_enabled[3]
|
|
#else
|
|
#ifdef DEBUG_BITBLT
|
|
#define dprintf_bitblt fprintf
|
|
#define debugging_bitblt 1
|
|
#else
|
|
#define dprintf_bitblt while(0) fprintf
|
|
#define debugging_bitblt 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_bitmap if(!debug_msg_enabled[4]) ; else fprintf
|
|
#define debugging_bitmap debug_msg_enabled[4]
|
|
#else
|
|
#ifdef DEBUG_BITMAP
|
|
#define dprintf_bitmap fprintf
|
|
#define debugging_bitmap 1
|
|
#else
|
|
#define dprintf_bitmap while(0) fprintf
|
|
#define debugging_bitmap 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_caret if(!debug_msg_enabled[5]) ; else fprintf
|
|
#define debugging_caret debug_msg_enabled[5]
|
|
#else
|
|
#ifdef DEBUG_CARET
|
|
#define dprintf_caret fprintf
|
|
#define debugging_caret 1
|
|
#else
|
|
#define dprintf_caret while(0) fprintf
|
|
#define debugging_caret 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_cdaudio if(!debug_msg_enabled[6]) ; else fprintf
|
|
#define debugging_cdaudio debug_msg_enabled[6]
|
|
#else
|
|
#ifdef DEBUG_CDAUDIO
|
|
#define dprintf_cdaudio fprintf
|
|
#define debugging_cdaudio 1
|
|
#else
|
|
#define dprintf_cdaudio while(0) fprintf
|
|
#define debugging_cdaudio 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_class if(!debug_msg_enabled[7]) ; else fprintf
|
|
#define debugging_class debug_msg_enabled[7]
|
|
#else
|
|
#ifdef DEBUG_CLASS
|
|
#define dprintf_class fprintf
|
|
#define debugging_class 1
|
|
#else
|
|
#define dprintf_class while(0) fprintf
|
|
#define debugging_class 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_clipboard if(!debug_msg_enabled[8]) ; else fprintf
|
|
#define debugging_clipboard debug_msg_enabled[8]
|
|
#else
|
|
#ifdef DEBUG_CLIPBOARD
|
|
#define dprintf_clipboard fprintf
|
|
#define debugging_clipboard 1
|
|
#else
|
|
#define dprintf_clipboard while(0) fprintf
|
|
#define debugging_clipboard 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_clipping if(!debug_msg_enabled[9]) ; else fprintf
|
|
#define debugging_clipping debug_msg_enabled[9]
|
|
#else
|
|
#ifdef DEBUG_CLIPPING
|
|
#define dprintf_clipping fprintf
|
|
#define debugging_clipping 1
|
|
#else
|
|
#define dprintf_clipping while(0) fprintf
|
|
#define debugging_clipping 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_combo if(!debug_msg_enabled[10]) ; else fprintf
|
|
#define debugging_combo debug_msg_enabled[10]
|
|
#else
|
|
#ifdef DEBUG_COMBO
|
|
#define dprintf_combo fprintf
|
|
#define debugging_combo 1
|
|
#else
|
|
#define dprintf_combo while(0) fprintf
|
|
#define debugging_combo 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_comm if(!debug_msg_enabled[11]) ; else fprintf
|
|
#define debugging_comm debug_msg_enabled[11]
|
|
#else
|
|
#ifdef DEBUG_COMM
|
|
#define dprintf_comm fprintf
|
|
#define debugging_comm 1
|
|
#else
|
|
#define dprintf_comm while(0) fprintf
|
|
#define debugging_comm 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_commdlg if(!debug_msg_enabled[12]) ; else fprintf
|
|
#define debugging_commdlg debug_msg_enabled[12]
|
|
#else
|
|
#ifdef DEBUG_COMMDLG
|
|
#define dprintf_commdlg fprintf
|
|
#define debugging_commdlg 1
|
|
#else
|
|
#define dprintf_commdlg while(0) fprintf
|
|
#define debugging_commdlg 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_crtdll if(!debug_msg_enabled[13]) ; else fprintf
|
|
#define debugging_crtdll debug_msg_enabled[13]
|
|
#else
|
|
#ifdef DEBUG_CRTDLL
|
|
#define dprintf_crtdll fprintf
|
|
#define debugging_crtdll 1
|
|
#else
|
|
#define dprintf_crtdll while(0) fprintf
|
|
#define debugging_crtdll 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_cursor if(!debug_msg_enabled[14]) ; else fprintf
|
|
#define debugging_cursor debug_msg_enabled[14]
|
|
#else
|
|
#ifdef DEBUG_CURSOR
|
|
#define dprintf_cursor fprintf
|
|
#define debugging_cursor 1
|
|
#else
|
|
#define dprintf_cursor while(0) fprintf
|
|
#define debugging_cursor 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dc if(!debug_msg_enabled[15]) ; else fprintf
|
|
#define debugging_dc debug_msg_enabled[15]
|
|
#else
|
|
#ifdef DEBUG_DC
|
|
#define dprintf_dc fprintf
|
|
#define debugging_dc 1
|
|
#else
|
|
#define dprintf_dc while(0) fprintf
|
|
#define debugging_dc 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dde if(!debug_msg_enabled[16]) ; else fprintf
|
|
#define debugging_dde debug_msg_enabled[16]
|
|
#else
|
|
#ifdef DEBUG_DDE
|
|
#define dprintf_dde fprintf
|
|
#define debugging_dde 1
|
|
#else
|
|
#define dprintf_dde while(0) fprintf
|
|
#define debugging_dde 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_ddraw if(!debug_msg_enabled[17]) ; else fprintf
|
|
#define debugging_ddraw debug_msg_enabled[17]
|
|
#else
|
|
#ifdef DEBUG_DDRAW
|
|
#define dprintf_ddraw fprintf
|
|
#define debugging_ddraw 1
|
|
#else
|
|
#define dprintf_ddraw while(0) fprintf
|
|
#define debugging_ddraw 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dialog if(!debug_msg_enabled[18]) ; else fprintf
|
|
#define debugging_dialog debug_msg_enabled[18]
|
|
#else
|
|
#ifdef DEBUG_DIALOG
|
|
#define dprintf_dialog fprintf
|
|
#define debugging_dialog 1
|
|
#else
|
|
#define dprintf_dialog while(0) fprintf
|
|
#define debugging_dialog 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dll if(!debug_msg_enabled[19]) ; else fprintf
|
|
#define debugging_dll debug_msg_enabled[19]
|
|
#else
|
|
#ifdef DEBUG_DLL
|
|
#define dprintf_dll fprintf
|
|
#define debugging_dll 1
|
|
#else
|
|
#define dprintf_dll while(0) fprintf
|
|
#define debugging_dll 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dosfs if(!debug_msg_enabled[20]) ; else fprintf
|
|
#define debugging_dosfs debug_msg_enabled[20]
|
|
#else
|
|
#ifdef DEBUG_DOSFS
|
|
#define dprintf_dosfs fprintf
|
|
#define debugging_dosfs 1
|
|
#else
|
|
#define dprintf_dosfs while(0) fprintf
|
|
#define debugging_dosfs 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_driver if(!debug_msg_enabled[21]) ; else fprintf
|
|
#define debugging_driver debug_msg_enabled[21]
|
|
#else
|
|
#ifdef DEBUG_DRIVER
|
|
#define dprintf_driver fprintf
|
|
#define debugging_driver 1
|
|
#else
|
|
#define dprintf_driver while(0) fprintf
|
|
#define debugging_driver 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_dsound if(!debug_msg_enabled[22]) ; else fprintf
|
|
#define debugging_dsound debug_msg_enabled[22]
|
|
#else
|
|
#ifdef DEBUG_DSOUND
|
|
#define dprintf_dsound fprintf
|
|
#define debugging_dsound 1
|
|
#else
|
|
#define dprintf_dsound while(0) fprintf
|
|
#define debugging_dsound 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_edit if(!debug_msg_enabled[23]) ; else fprintf
|
|
#define debugging_edit debug_msg_enabled[23]
|
|
#else
|
|
#ifdef DEBUG_EDIT
|
|
#define dprintf_edit fprintf
|
|
#define debugging_edit 1
|
|
#else
|
|
#define dprintf_edit while(0) fprintf
|
|
#define debugging_edit 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_event if(!debug_msg_enabled[24]) ; else fprintf
|
|
#define debugging_event debug_msg_enabled[24]
|
|
#else
|
|
#ifdef DEBUG_EVENT
|
|
#define dprintf_event fprintf
|
|
#define debugging_event 1
|
|
#else
|
|
#define dprintf_event while(0) fprintf
|
|
#define debugging_event 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_exec if(!debug_msg_enabled[25]) ; else fprintf
|
|
#define debugging_exec debug_msg_enabled[25]
|
|
#else
|
|
#ifdef DEBUG_EXEC
|
|
#define dprintf_exec fprintf
|
|
#define debugging_exec 1
|
|
#else
|
|
#define dprintf_exec while(0) fprintf
|
|
#define debugging_exec 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_file if(!debug_msg_enabled[26]) ; else fprintf
|
|
#define debugging_file debug_msg_enabled[26]
|
|
#else
|
|
#ifdef DEBUG_FILE
|
|
#define dprintf_file fprintf
|
|
#define debugging_file 1
|
|
#else
|
|
#define dprintf_file while(0) fprintf
|
|
#define debugging_file 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_fixup if(!debug_msg_enabled[27]) ; else fprintf
|
|
#define debugging_fixup debug_msg_enabled[27]
|
|
#else
|
|
#ifdef DEBUG_FIXUP
|
|
#define dprintf_fixup fprintf
|
|
#define debugging_fixup 1
|
|
#else
|
|
#define dprintf_fixup while(0) fprintf
|
|
#define debugging_fixup 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_font if(!debug_msg_enabled[28]) ; else fprintf
|
|
#define debugging_font debug_msg_enabled[28]
|
|
#else
|
|
#ifdef DEBUG_FONT
|
|
#define dprintf_font fprintf
|
|
#define debugging_font 1
|
|
#else
|
|
#define dprintf_font while(0) fprintf
|
|
#define debugging_font 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_gdi if(!debug_msg_enabled[29]) ; else fprintf
|
|
#define debugging_gdi debug_msg_enabled[29]
|
|
#else
|
|
#ifdef DEBUG_GDI
|
|
#define dprintf_gdi fprintf
|
|
#define debugging_gdi 1
|
|
#else
|
|
#define dprintf_gdi while(0) fprintf
|
|
#define debugging_gdi 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_global if(!debug_msg_enabled[30]) ; else fprintf
|
|
#define debugging_global debug_msg_enabled[30]
|
|
#else
|
|
#ifdef DEBUG_GLOBAL
|
|
#define dprintf_global fprintf
|
|
#define debugging_global 1
|
|
#else
|
|
#define dprintf_global while(0) fprintf
|
|
#define debugging_global 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_graphics if(!debug_msg_enabled[31]) ; else fprintf
|
|
#define debugging_graphics debug_msg_enabled[31]
|
|
#else
|
|
#ifdef DEBUG_GRAPHICS
|
|
#define dprintf_graphics fprintf
|
|
#define debugging_graphics 1
|
|
#else
|
|
#define dprintf_graphics while(0) fprintf
|
|
#define debugging_graphics 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_heap if(!debug_msg_enabled[32]) ; else fprintf
|
|
#define debugging_heap debug_msg_enabled[32]
|
|
#else
|
|
#ifdef DEBUG_HEAP
|
|
#define dprintf_heap fprintf
|
|
#define debugging_heap 1
|
|
#else
|
|
#define dprintf_heap while(0) fprintf
|
|
#define debugging_heap 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_hook if(!debug_msg_enabled[33]) ; else fprintf
|
|
#define debugging_hook debug_msg_enabled[33]
|
|
#else
|
|
#ifdef DEBUG_HOOK
|
|
#define dprintf_hook fprintf
|
|
#define debugging_hook 1
|
|
#else
|
|
#define dprintf_hook while(0) fprintf
|
|
#define debugging_hook 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_icon if(!debug_msg_enabled[34]) ; else fprintf
|
|
#define debugging_icon debug_msg_enabled[34]
|
|
#else
|
|
#ifdef DEBUG_ICON
|
|
#define dprintf_icon fprintf
|
|
#define debugging_icon 1
|
|
#else
|
|
#define dprintf_icon while(0) fprintf
|
|
#define debugging_icon 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_int if(!debug_msg_enabled[35]) ; else fprintf
|
|
#define debugging_int debug_msg_enabled[35]
|
|
#else
|
|
#ifdef DEBUG_INT
|
|
#define dprintf_int fprintf
|
|
#define debugging_int 1
|
|
#else
|
|
#define dprintf_int while(0) fprintf
|
|
#define debugging_int 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_key if(!debug_msg_enabled[36]) ; else fprintf
|
|
#define debugging_key debug_msg_enabled[36]
|
|
#else
|
|
#ifdef DEBUG_KEY
|
|
#define dprintf_key fprintf
|
|
#define debugging_key 1
|
|
#else
|
|
#define dprintf_key while(0) fprintf
|
|
#define debugging_key 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_keyboard if(!debug_msg_enabled[37]) ; else fprintf
|
|
#define debugging_keyboard debug_msg_enabled[37]
|
|
#else
|
|
#ifdef DEBUG_KEYBOARD
|
|
#define dprintf_keyboard fprintf
|
|
#define debugging_keyboard 1
|
|
#else
|
|
#define dprintf_keyboard while(0) fprintf
|
|
#define debugging_keyboard 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_ldt if(!debug_msg_enabled[38]) ; else fprintf
|
|
#define debugging_ldt debug_msg_enabled[38]
|
|
#else
|
|
#ifdef DEBUG_LDT
|
|
#define dprintf_ldt fprintf
|
|
#define debugging_ldt 1
|
|
#else
|
|
#define dprintf_ldt while(0) fprintf
|
|
#define debugging_ldt 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_listbox if(!debug_msg_enabled[39]) ; else fprintf
|
|
#define debugging_listbox debug_msg_enabled[39]
|
|
#else
|
|
#ifdef DEBUG_LISTBOX
|
|
#define dprintf_listbox fprintf
|
|
#define debugging_listbox 1
|
|
#else
|
|
#define dprintf_listbox while(0) fprintf
|
|
#define debugging_listbox 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_local if(!debug_msg_enabled[40]) ; else fprintf
|
|
#define debugging_local debug_msg_enabled[40]
|
|
#else
|
|
#ifdef DEBUG_LOCAL
|
|
#define dprintf_local fprintf
|
|
#define debugging_local 1
|
|
#else
|
|
#define dprintf_local while(0) fprintf
|
|
#define debugging_local 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mci if(!debug_msg_enabled[41]) ; else fprintf
|
|
#define debugging_mci debug_msg_enabled[41]
|
|
#else
|
|
#ifdef DEBUG_MCI
|
|
#define dprintf_mci fprintf
|
|
#define debugging_mci 1
|
|
#else
|
|
#define dprintf_mci while(0) fprintf
|
|
#define debugging_mci 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mcianim if(!debug_msg_enabled[42]) ; else fprintf
|
|
#define debugging_mcianim debug_msg_enabled[42]
|
|
#else
|
|
#ifdef DEBUG_MCIANIM
|
|
#define dprintf_mcianim fprintf
|
|
#define debugging_mcianim 1
|
|
#else
|
|
#define dprintf_mcianim while(0) fprintf
|
|
#define debugging_mcianim 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mciwave if(!debug_msg_enabled[43]) ; else fprintf
|
|
#define debugging_mciwave debug_msg_enabled[43]
|
|
#else
|
|
#ifdef DEBUG_MCIWAVE
|
|
#define dprintf_mciwave fprintf
|
|
#define debugging_mciwave 1
|
|
#else
|
|
#define dprintf_mciwave while(0) fprintf
|
|
#define debugging_mciwave 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mdi if(!debug_msg_enabled[44]) ; else fprintf
|
|
#define debugging_mdi debug_msg_enabled[44]
|
|
#else
|
|
#ifdef DEBUG_MDI
|
|
#define dprintf_mdi fprintf
|
|
#define debugging_mdi 1
|
|
#else
|
|
#define dprintf_mdi while(0) fprintf
|
|
#define debugging_mdi 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_menu if(!debug_msg_enabled[45]) ; else fprintf
|
|
#define debugging_menu debug_msg_enabled[45]
|
|
#else
|
|
#ifdef DEBUG_MENU
|
|
#define dprintf_menu fprintf
|
|
#define debugging_menu 1
|
|
#else
|
|
#define dprintf_menu while(0) fprintf
|
|
#define debugging_menu 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_message if(!debug_msg_enabled[46]) ; else fprintf
|
|
#define debugging_message debug_msg_enabled[46]
|
|
#else
|
|
#ifdef DEBUG_MESSAGE
|
|
#define dprintf_message fprintf
|
|
#define debugging_message 1
|
|
#else
|
|
#define dprintf_message while(0) fprintf
|
|
#define debugging_message 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_metafile if(!debug_msg_enabled[47]) ; else fprintf
|
|
#define debugging_metafile debug_msg_enabled[47]
|
|
#else
|
|
#ifdef DEBUG_METAFILE
|
|
#define dprintf_metafile fprintf
|
|
#define debugging_metafile 1
|
|
#else
|
|
#define dprintf_metafile while(0) fprintf
|
|
#define debugging_metafile 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_midi if(!debug_msg_enabled[48]) ; else fprintf
|
|
#define debugging_midi debug_msg_enabled[48]
|
|
#else
|
|
#ifdef DEBUG_MIDI
|
|
#define dprintf_midi fprintf
|
|
#define debugging_midi 1
|
|
#else
|
|
#define dprintf_midi while(0) fprintf
|
|
#define debugging_midi 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mmaux if(!debug_msg_enabled[49]) ; else fprintf
|
|
#define debugging_mmaux debug_msg_enabled[49]
|
|
#else
|
|
#ifdef DEBUG_MMAUX
|
|
#define dprintf_mmaux fprintf
|
|
#define debugging_mmaux 1
|
|
#else
|
|
#define dprintf_mmaux while(0) fprintf
|
|
#define debugging_mmaux 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mmio if(!debug_msg_enabled[50]) ; else fprintf
|
|
#define debugging_mmio debug_msg_enabled[50]
|
|
#else
|
|
#ifdef DEBUG_MMIO
|
|
#define dprintf_mmio fprintf
|
|
#define debugging_mmio 1
|
|
#else
|
|
#define dprintf_mmio while(0) fprintf
|
|
#define debugging_mmio 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mmsys if(!debug_msg_enabled[51]) ; else fprintf
|
|
#define debugging_mmsys debug_msg_enabled[51]
|
|
#else
|
|
#ifdef DEBUG_MMSYS
|
|
#define dprintf_mmsys fprintf
|
|
#define debugging_mmsys 1
|
|
#else
|
|
#define dprintf_mmsys while(0) fprintf
|
|
#define debugging_mmsys 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_mmtime if(!debug_msg_enabled[52]) ; else fprintf
|
|
#define debugging_mmtime debug_msg_enabled[52]
|
|
#else
|
|
#ifdef DEBUG_MMTIME
|
|
#define dprintf_mmtime fprintf
|
|
#define debugging_mmtime 1
|
|
#else
|
|
#define dprintf_mmtime while(0) fprintf
|
|
#define debugging_mmtime 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_module if(!debug_msg_enabled[53]) ; else fprintf
|
|
#define debugging_module debug_msg_enabled[53]
|
|
#else
|
|
#ifdef DEBUG_MODULE
|
|
#define dprintf_module fprintf
|
|
#define debugging_module 1
|
|
#else
|
|
#define dprintf_module while(0) fprintf
|
|
#define debugging_module 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_msg if(!debug_msg_enabled[54]) ; else fprintf
|
|
#define debugging_msg debug_msg_enabled[54]
|
|
#else
|
|
#ifdef DEBUG_MSG
|
|
#define dprintf_msg fprintf
|
|
#define debugging_msg 1
|
|
#else
|
|
#define dprintf_msg while(0) fprintf
|
|
#define debugging_msg 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_nonclient if(!debug_msg_enabled[55]) ; else fprintf
|
|
#define debugging_nonclient debug_msg_enabled[55]
|
|
#else
|
|
#ifdef DEBUG_NONCLIENT
|
|
#define dprintf_nonclient fprintf
|
|
#define debugging_nonclient 1
|
|
#else
|
|
#define dprintf_nonclient while(0) fprintf
|
|
#define debugging_nonclient 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_ole if(!debug_msg_enabled[56]) ; else fprintf
|
|
#define debugging_ole debug_msg_enabled[56]
|
|
#else
|
|
#ifdef DEBUG_OLE
|
|
#define dprintf_ole fprintf
|
|
#define debugging_ole 1
|
|
#else
|
|
#define dprintf_ole while(0) fprintf
|
|
#define debugging_ole 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_palette if(!debug_msg_enabled[57]) ; else fprintf
|
|
#define debugging_palette debug_msg_enabled[57]
|
|
#else
|
|
#ifdef DEBUG_PALETTE
|
|
#define dprintf_palette fprintf
|
|
#define debugging_palette 1
|
|
#else
|
|
#define dprintf_palette while(0) fprintf
|
|
#define debugging_palette 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_profile if(!debug_msg_enabled[58]) ; else fprintf
|
|
#define debugging_profile debug_msg_enabled[58]
|
|
#else
|
|
#ifdef DEBUG_PROFILE
|
|
#define dprintf_profile fprintf
|
|
#define debugging_profile 1
|
|
#else
|
|
#define dprintf_profile while(0) fprintf
|
|
#define debugging_profile 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_progress if(!debug_msg_enabled[59]) ; else fprintf
|
|
#define debugging_progress debug_msg_enabled[59]
|
|
#else
|
|
#ifdef DEBUG_PROGRESS
|
|
#define dprintf_progress fprintf
|
|
#define debugging_progress 1
|
|
#else
|
|
#define dprintf_progress while(0) fprintf
|
|
#define debugging_progress 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_prop if(!debug_msg_enabled[60]) ; else fprintf
|
|
#define debugging_prop debug_msg_enabled[60]
|
|
#else
|
|
#ifdef DEBUG_PROP
|
|
#define dprintf_prop fprintf
|
|
#define debugging_prop 1
|
|
#else
|
|
#define dprintf_prop while(0) fprintf
|
|
#define debugging_prop 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_reg if(!debug_msg_enabled[61]) ; else fprintf
|
|
#define debugging_reg debug_msg_enabled[61]
|
|
#else
|
|
#ifdef DEBUG_REG
|
|
#define dprintf_reg fprintf
|
|
#define debugging_reg 1
|
|
#else
|
|
#define dprintf_reg while(0) fprintf
|
|
#define debugging_reg 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_region if(!debug_msg_enabled[62]) ; else fprintf
|
|
#define debugging_region debug_msg_enabled[62]
|
|
#else
|
|
#ifdef DEBUG_REGION
|
|
#define dprintf_region fprintf
|
|
#define debugging_region 1
|
|
#else
|
|
#define dprintf_region while(0) fprintf
|
|
#define debugging_region 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_relay if(!debug_msg_enabled[63]) ; else fprintf
|
|
#define debugging_relay debug_msg_enabled[63]
|
|
#else
|
|
#ifdef DEBUG_RELAY
|
|
#define dprintf_relay fprintf
|
|
#define debugging_relay 1
|
|
#else
|
|
#define dprintf_relay while(0) fprintf
|
|
#define debugging_relay 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_resource if(!debug_msg_enabled[64]) ; else fprintf
|
|
#define debugging_resource debug_msg_enabled[64]
|
|
#else
|
|
#ifdef DEBUG_RESOURCE
|
|
#define dprintf_resource fprintf
|
|
#define debugging_resource 1
|
|
#else
|
|
#define dprintf_resource while(0) fprintf
|
|
#define debugging_resource 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_scroll if(!debug_msg_enabled[65]) ; else fprintf
|
|
#define debugging_scroll debug_msg_enabled[65]
|
|
#else
|
|
#ifdef DEBUG_SCROLL
|
|
#define dprintf_scroll fprintf
|
|
#define debugging_scroll 1
|
|
#else
|
|
#define dprintf_scroll while(0) fprintf
|
|
#define debugging_scroll 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_selector if(!debug_msg_enabled[66]) ; else fprintf
|
|
#define debugging_selector debug_msg_enabled[66]
|
|
#else
|
|
#ifdef DEBUG_SELECTOR
|
|
#define dprintf_selector fprintf
|
|
#define debugging_selector 1
|
|
#else
|
|
#define dprintf_selector while(0) fprintf
|
|
#define debugging_selector 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_sem if(!debug_msg_enabled[67]) ; else fprintf
|
|
#define debugging_sem debug_msg_enabled[67]
|
|
#else
|
|
#ifdef DEBUG_SEM
|
|
#define dprintf_sem fprintf
|
|
#define debugging_sem 1
|
|
#else
|
|
#define dprintf_sem while(0) fprintf
|
|
#define debugging_sem 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_sendmsg if(!debug_msg_enabled[68]) ; else fprintf
|
|
#define debugging_sendmsg debug_msg_enabled[68]
|
|
#else
|
|
#ifdef DEBUG_SENDMSG
|
|
#define dprintf_sendmsg fprintf
|
|
#define debugging_sendmsg 1
|
|
#else
|
|
#define dprintf_sendmsg while(0) fprintf
|
|
#define debugging_sendmsg 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_shm if(!debug_msg_enabled[69]) ; else fprintf
|
|
#define debugging_shm debug_msg_enabled[69]
|
|
#else
|
|
#ifdef DEBUG_SHM
|
|
#define dprintf_shm fprintf
|
|
#define debugging_shm 1
|
|
#else
|
|
#define dprintf_shm while(0) fprintf
|
|
#define debugging_shm 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_stress if(!debug_msg_enabled[70]) ; else fprintf
|
|
#define debugging_stress debug_msg_enabled[70]
|
|
#else
|
|
#ifdef DEBUG_STRESS
|
|
#define dprintf_stress fprintf
|
|
#define debugging_stress 1
|
|
#else
|
|
#define dprintf_stress while(0) fprintf
|
|
#define debugging_stress 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_string if(!debug_msg_enabled[71]) ; else fprintf
|
|
#define debugging_string debug_msg_enabled[71]
|
|
#else
|
|
#ifdef DEBUG_STRING
|
|
#define dprintf_string fprintf
|
|
#define debugging_string 1
|
|
#else
|
|
#define dprintf_string while(0) fprintf
|
|
#define debugging_string 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_task if(!debug_msg_enabled[72]) ; else fprintf
|
|
#define debugging_task debug_msg_enabled[72]
|
|
#else
|
|
#ifdef DEBUG_TASK
|
|
#define dprintf_task fprintf
|
|
#define debugging_task 1
|
|
#else
|
|
#define dprintf_task while(0) fprintf
|
|
#define debugging_task 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_text if(!debug_msg_enabled[73]) ; else fprintf
|
|
#define debugging_text debug_msg_enabled[73]
|
|
#else
|
|
#ifdef DEBUG_TEXT
|
|
#define dprintf_text fprintf
|
|
#define debugging_text 1
|
|
#else
|
|
#define dprintf_text while(0) fprintf
|
|
#define debugging_text 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_thunk if(!debug_msg_enabled[74]) ; else fprintf
|
|
#define debugging_thunk debug_msg_enabled[74]
|
|
#else
|
|
#ifdef DEBUG_THUNK
|
|
#define dprintf_thunk fprintf
|
|
#define debugging_thunk 1
|
|
#else
|
|
#define dprintf_thunk while(0) fprintf
|
|
#define debugging_thunk 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_timer if(!debug_msg_enabled[75]) ; else fprintf
|
|
#define debugging_timer debug_msg_enabled[75]
|
|
#else
|
|
#ifdef DEBUG_TIMER
|
|
#define dprintf_timer fprintf
|
|
#define debugging_timer 1
|
|
#else
|
|
#define dprintf_timer while(0) fprintf
|
|
#define debugging_timer 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_toolhelp if(!debug_msg_enabled[76]) ; else fprintf
|
|
#define debugging_toolhelp debug_msg_enabled[76]
|
|
#else
|
|
#ifdef DEBUG_TOOLHELP
|
|
#define dprintf_toolhelp fprintf
|
|
#define debugging_toolhelp 1
|
|
#else
|
|
#define dprintf_toolhelp while(0) fprintf
|
|
#define debugging_toolhelp 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_tweak if(!debug_msg_enabled[77]) ; else fprintf
|
|
#define debugging_tweak debug_msg_enabled[77]
|
|
#else
|
|
#ifdef DEBUG_TWEAK
|
|
#define dprintf_tweak fprintf
|
|
#define debugging_tweak 1
|
|
#else
|
|
#define dprintf_tweak while(0) fprintf
|
|
#define debugging_tweak 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_updown if(!debug_msg_enabled[78]) ; else fprintf
|
|
#define debugging_updown debug_msg_enabled[78]
|
|
#else
|
|
#ifdef DEBUG_UPDOWN
|
|
#define dprintf_updown fprintf
|
|
#define debugging_updown 1
|
|
#else
|
|
#define dprintf_updown while(0) fprintf
|
|
#define debugging_updown 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_ver if(!debug_msg_enabled[79]) ; else fprintf
|
|
#define debugging_ver debug_msg_enabled[79]
|
|
#else
|
|
#ifdef DEBUG_VER
|
|
#define dprintf_ver fprintf
|
|
#define debugging_ver 1
|
|
#else
|
|
#define dprintf_ver while(0) fprintf
|
|
#define debugging_ver 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_virtual if(!debug_msg_enabled[80]) ; else fprintf
|
|
#define debugging_virtual debug_msg_enabled[80]
|
|
#else
|
|
#ifdef DEBUG_VIRTUAL
|
|
#define dprintf_virtual fprintf
|
|
#define debugging_virtual 1
|
|
#else
|
|
#define dprintf_virtual while(0) fprintf
|
|
#define debugging_virtual 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_vxd if(!debug_msg_enabled[81]) ; else fprintf
|
|
#define debugging_vxd debug_msg_enabled[81]
|
|
#else
|
|
#ifdef DEBUG_VXD
|
|
#define dprintf_vxd fprintf
|
|
#define debugging_vxd 1
|
|
#else
|
|
#define dprintf_vxd while(0) fprintf
|
|
#define debugging_vxd 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_win if(!debug_msg_enabled[82]) ; else fprintf
|
|
#define debugging_win debug_msg_enabled[82]
|
|
#else
|
|
#ifdef DEBUG_WIN
|
|
#define dprintf_win fprintf
|
|
#define debugging_win 1
|
|
#else
|
|
#define dprintf_win while(0) fprintf
|
|
#define debugging_win 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_win16drv if(!debug_msg_enabled[83]) ; else fprintf
|
|
#define debugging_win16drv debug_msg_enabled[83]
|
|
#else
|
|
#ifdef DEBUG_WIN16DRV
|
|
#define dprintf_win16drv fprintf
|
|
#define debugging_win16drv 1
|
|
#else
|
|
#define dprintf_win16drv while(0) fprintf
|
|
#define debugging_win16drv 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_win32 if(!debug_msg_enabled[84]) ; else fprintf
|
|
#define debugging_win32 debug_msg_enabled[84]
|
|
#else
|
|
#ifdef DEBUG_WIN32
|
|
#define dprintf_win32 fprintf
|
|
#define debugging_win32 1
|
|
#else
|
|
#define dprintf_win32 while(0) fprintf
|
|
#define debugging_win32 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_winsock if(!debug_msg_enabled[85]) ; else fprintf
|
|
#define debugging_winsock debug_msg_enabled[85]
|
|
#else
|
|
#ifdef DEBUG_WINSOCK
|
|
#define dprintf_winsock fprintf
|
|
#define debugging_winsock 1
|
|
#else
|
|
#define dprintf_winsock while(0) fprintf
|
|
#define debugging_winsock 0
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#define dprintf_x11 if(!debug_msg_enabled[86]) ; else fprintf
|
|
#define debugging_x11 debug_msg_enabled[86]
|
|
#else
|
|
#ifdef DEBUG_X11
|
|
#define dprintf_x11 fprintf
|
|
#define debugging_x11 1
|
|
#else
|
|
#define dprintf_x11 while(0) fprintf
|
|
#define debugging_x11 0
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
#ifdef DEBUG_DEFINE_VARIABLES
|
|
static char *debug_msg_name[] = {
|
|
"accel",
|
|
"aspi",
|
|
"atom",
|
|
"bitblt",
|
|
"bitmap",
|
|
"caret",
|
|
"cdaudio",
|
|
"class",
|
|
"clipboard",
|
|
"clipping",
|
|
"combo",
|
|
"comm",
|
|
"commdlg",
|
|
"crtdll",
|
|
"cursor",
|
|
"dc",
|
|
"dde",
|
|
"ddraw",
|
|
"dialog",
|
|
"dll",
|
|
"dosfs",
|
|
"driver",
|
|
"dsound",
|
|
"edit",
|
|
"event",
|
|
"exec",
|
|
"file",
|
|
"fixup",
|
|
"font",
|
|
"gdi",
|
|
"global",
|
|
"graphics",
|
|
"heap",
|
|
"hook",
|
|
"icon",
|
|
"int",
|
|
"key",
|
|
"keyboard",
|
|
"ldt",
|
|
"listbox",
|
|
"local",
|
|
"mci",
|
|
"mcianim",
|
|
"mciwave",
|
|
"mdi",
|
|
"menu",
|
|
"message",
|
|
"metafile",
|
|
"midi",
|
|
"mmaux",
|
|
"mmio",
|
|
"mmsys",
|
|
"mmtime",
|
|
"module",
|
|
"msg",
|
|
"nonclient",
|
|
"ole",
|
|
"palette",
|
|
"profile",
|
|
"progress",
|
|
"prop",
|
|
"reg",
|
|
"region",
|
|
"relay",
|
|
"resource",
|
|
"scroll",
|
|
"selector",
|
|
"sem",
|
|
"sendmsg",
|
|
"shm",
|
|
"stress",
|
|
"string",
|
|
"task",
|
|
"text",
|
|
"thunk",
|
|
"timer",
|
|
"toolhelp",
|
|
"tweak",
|
|
"updown",
|
|
"ver",
|
|
"virtual",
|
|
"vxd",
|
|
"win",
|
|
"win16drv",
|
|
"win32",
|
|
"winsock",
|
|
"x11",
|
|
""
|
|
};
|
|
#endif
|
|
#endif
|