wine/tools/make_debug
Alexandre Julliard 6abb89c3b2 Release 950302
Thu Mar  2 17:44:32 1995  Alexandre Julliard  (julliard@sunsite.unc.edu)

	* [loader/resource.c] [objects/oembitmap.c]
	Removed sysres bitmap code; you need libXpm to compile now.
	Implemented LoadIcon() for OEM icons.

	* [include/bitmaps/oic_*]
	Added OEM icons in XPM format.

	* [objects/dib.c]
	Bug fix in DrawIcon().

	* [rc/sysresbm.rc]
	Removed; all bitmaps are stored in XPM format now.

Tue Feb 28 18:54:28 1995  Tomi Leppikangas  (tomilepp@paju.oulu.fi)

	* [controls/edit.c]
	Small patch to fix edit-control when it's created with text.

Sun Feb 26 20:22:15 1995  Michael Veksler  (e1678223@tochnapc2.technion.ac.il)

	* [tools/make_debug]
	The created macros won't have side effects anymore when used in
	an "if-else" structure. No more warnings from the compiler when
	compiled without defining DEBUG_RUNTIME.
 
Sun Feb 26 20:20:49 1995  Michael Patra <micky@marie.physik.TU-Berlin.DE>

	* [controls/listbox.c]
	ListBoxDeleteString(): Fixed

	* [loader/selector.c]
	GetMemoryReference(): When special segments are referenced by
	pseudo-functions like __0040H, a reference to a "normal" segment
	will be returned preventing the program from crashing as soon
	as the referenced segment is actually accessed.

Sun Feb 26 15:55:14 MET 1995  Martin von Loewis (loewis@informatik.hu-berlin.de)

	* [Configure]
	Ask for OLE stubs and malloc debugging

	* [Imakefile]
	link with libmcheck.a if necessary

	* [if1632/relay.c][include/dll.h][if1632/Imakefile]
	Add OLE stubs, increase number of builtins
	dll_name_table_entry_s: new field dll_is_used

	* [loader/library.c]
	GetModuleHandle,ModuleNext: Check dll_is_used

	* [loader/ne_image.c]
	Bark on unsupported NE_RADDR_LOWBYTE flag (what is it supposed
	to mean, anyway?)

	* [misc/olecli.c][misc/olesvr.c]
	New files. Add to misc/Imakefile

	* [misc/dos_fs.c]
	DOS_GetUnixFileName: make a copy of the input parameter to 
	prevent overwriting

	* [misc/main.c]
	MAIN_ParseDLLOptions: new function
	MAIN_ParseOptions: treat -dll command line flag
	main: add support for malloc debugging

Fri Feb 24 12:43:27 1995  Erik Svendsen  <z3esv@kmd-ac.dk>

	* [loader/signal.c]
	Small patch for people using FreeBSD-2.1.0.

Fri Feb 17 22:49:18 1995  Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx)

	* [toolkit/sup.c]
	Added return values to the Call* routines

	* [toolkit/winmain.c]
	Load the resource file properly for WineLib applications.
1995-03-02 17:33:47 +00:00

165 lines
2.5 KiB
Bash
Executable file

#!/bin/sh
#
# This script scans the whole source code for symbols of the form dprintf_xxx,
# generates the necessary macro definitions and puts them into the files
# include/stddebug.h and include/debug.h . This script must be started with
# cwd = rootdir of the Wine-distribution.
#
# Michael Patra <micky@marie.physik.tu-berlin.de>
#
DEBUG_H=include/debug.h
STDDEBUG_H=include/stddebug.h
mv $DEBUG_H $DEBUG_H.old
mv $STDDEBUG_H $STDDEBUG_H.old
# Build the list of debug identifiers
grep -h dprintf_ */*.c | sed 's/.*dprintf_\([A-Za-z0-9_]*\).*/\1/g' | \
sort | uniq > temp.$$
# Build debug.h
sed '/^\/\* Do not remove this line or change anything below this line \*\//q'\
<$DEBUG_H.old >$DEBUG_H
cat <<++EOF++ >> $DEBUG_H
#ifdef DEBUG_NONE_EXT
++EOF++
cat temp.$$ | tr a-z A-Z |
{
while read x
do
echo "#undef DEBUG_$x" >> $DEBUG_H
done
}
cat <<++EOF++ >>$DEBUG_H
#endif
#ifdef DEBUG_ALL_EXT
++EOF++
cat temp.$$ | tr a-z A-Z |
{
while read x
do
echo "#define DEBUG_$x" >> $DEBUG_H
done
}
cat <<++EOF++ >>$DEBUG_H
#endif
#ifdef DEBUG_RUNTIME
#ifdef DEBUG_DEFINE_VARIABLES
short debug_msg_enabled[]={
++EOF++
cat temp.$$ | tr a-z A-Z |
{
while read x
do
cat <<++EOF++ >>$DEBUG_H
#ifdef DEBUG_$x
1,
#else
0,
#endif
++EOF++
done
}
cat <<++EOF++ >>$DEBUG_H
0
};
#else
extern short debug_msg_enabled[];
#endif
#endif
++EOF++
i=0
cat temp.$$ |
{
while read x
do
y=`echo $x | tr a-z A-Z`
cat <<++EOF++ >>$DEBUG_H
#ifdef DEBUG_RUNTIME
#define dprintf_$x if(!debug_msg_enabled[$i]) ; else fprintf
#define debugging_$x debug_msg_enabled[$i]
#else
#ifdef DEBUG_$y
#define dprintf_$x fprintf
#define debugging_$x 1
#else
#define dprintf_$x while(0) fprintf
#define debugging_$x 0
#endif
#endif
++EOF++
let i=$i+1
done
}
cat <<++EOF++ >>$DEBUG_H
#ifdef DEBUG_RUNTIME
#ifdef DEBUG_DEFINE_VARIABLES
static char *debug_msg_name[] = {
++EOF++
cat temp.$$ |
{
while read x
do
echo " \"$x\"," >> $DEBUG_H
done
}
cat <<++EOF++ >>$DEBUG_H
""
};
#endif
#endif
++EOF++
# Build stddebug.h
sed '/^\/\* Do not remove this line or change anything below this line \*\//q'\
<$STDDEBUG_H.old >$STDDEBUG_H
cat <<++EOF++ >>$STDDEBUG_H
#ifdef DEBUG_NONE
++EOF++
cat temp.$$ | tr a-z A-Z |
{
while read x
do
echo "#undef DEBUG_$x" >> $STDDEBUG_H
done
}
cat <<++EOF++ >>$STDDEBUG_H
#endif
#ifdef DEBUG_ALL
++EOF++
cat temp.$$ | tr a-z A-Z |
{
while read x
do
echo "#define DEBUG_$x" >> $STDDEBUG_H
done
}
echo "#endif" >> $STDDEBUG_H
rm temp.$$ $DEBUG_H.old $STDDEBUG_H.old