From: Earnie B. <ea...@us...> - 2002-01-26 02:34:17
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin/include/sys In directory usw-pr-cvs1:/tmp/cvs-serv3694/cygwin/include/sys Modified Files: Tag: msys-1_0_4 strace.h Log Message: 2001-01-25 Earnie Boyd <ea...@us...> * spawn.cc (spawn_guts): Move path/switch filter code to cygwin_conv_to_win32_path. Call cygwin_conv_to_win32_path for all command line arguments. * path.cc (cygwin_conv_to_win32_path): Move path/switch filter code from spawn_guts to here. Pass back input if path not found. (class av::replace): New function. * uname.cc (uname): Change default system to MINGW32. * pinfo.cc (set_myself): Don't OuputDebugString unless strace.active. * include/cygwin/version.h: Increment to version 1.0.4. * include/sys/strace.h (_STRACE_ON): New macro. (_STRACE_OFF): Ditto. (MDEBUG): Ditto. Index: strace.h =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/include/sys/strace.h,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.4.1 diff -C2 -d -r1.1.1.1 -r1.1.1.1.4.1 *** strace.h 2001/08/07 17:51:16 1.1.1.1 --- strace.h 2002/01/26 02:34:14 1.1.1.1.4.1 *************** *** 78,81 **** --- 78,88 ---- #define _STRACE_THREAD 0x40000 // thread-locking calls #define _STRACE_NOTALL 0x80000 // don't include if _STRACE_ALL + #if defined (DEBUGGING) + #define _STRACE_ON strace.active = 1; + #define _STRACE_OFF strace.active = 0; + #else + #define _STRACE_ON + #define _STRACE_OFF + #endif #ifdef __cplusplus *************** *** 135,138 **** --- 142,156 ---- #define debug_printf(fmt, args...) strace_printf_wrap(DEBUG, fmt , ## args) + #if defined (DEBUGGING) + #define mdebug(mdebug_active, mdebug_function, mdebug_string) \ + do { \ + char mdebug_buf[2048]; \ + sprintf (mdebug_buf, "%s [%d]: %s", mdebug_function, mdebug_active, mdebug_string); \ + OutputDebugString (mdebug_buf); \ + } \ + while (0) + #else + #define mdebug(mdebug_active, mdebug_function, mdebug_string) + #endif #define paranoid_printf(fmt, args...) strace_printf_wrap(PARANOID, fmt , ## args) #define select_printf(fmt, args...) strace_printf_wrap(SELECT, fmt , ## args) |