Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
diff --git a/objects/bitmap.c b/objects/bitmap.c
index 80dc0a2..41a1248 100644
--- a/objects/bitmap.c
+++ b/objects/bitmap.c
@@ -3,6 +3,20 @@
*
* Copyright 1993 Alexandre Julliard
* 1998 Huw D M Davies
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
@@ -11,10 +25,10 @@
#include "wine/winbase16.h"
#include "gdi.h"
#include "bitmap.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "wine/winuser16.h"
-DEFAULT_DEBUG_CHANNEL(bitmap);
+WINE_DEFAULT_DEBUG_CHANNEL(bitmap);
BITMAP_DRIVER *BITMAP_Driver = NULL;
diff --git a/objects/brush.c b/objects/brush.c
index cef8f52..ac747f7 100644
--- a/objects/brush.c
+++ b/objects/brush.c
@@ -2,6 +2,20 @@
* GDI brush objects
*
* Copyright 1993, 1994 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
@@ -15,9 +29,9 @@
#include "bitmap.h"
#include "brush.h"
-#include "debugtools.h"
+#include "wine/debug.h"
-DEFAULT_DEBUG_CHANNEL(gdi);
+WINE_DEFAULT_DEBUG_CHANNEL(gdi);
static HGLOBAL16 dib_copy(BITMAPINFO *info, UINT coloruse)
{
diff --git a/objects/clipping.c b/objects/clipping.c
index e6e5814..ccf695b 100644
--- a/objects/clipping.c
+++ b/objects/clipping.c
@@ -2,6 +2,20 @@
* DC clipping functions
*
* Copyright 1993 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
@@ -10,9 +24,9 @@
#include "wine/winuser16.h"
#include "gdi.h"
#include "region.h"
-#include "debugtools.h"
+#include "wine/debug.h"
-DEFAULT_DEBUG_CHANNEL(clipping);
+WINE_DEFAULT_DEBUG_CHANNEL(clipping);
/***********************************************************************
diff --git a/objects/color.c b/objects/color.c
index 5ee3a06..e6c4f9e 100644
--- a/objects/color.c
+++ b/objects/color.c
@@ -3,14 +3,28 @@
*
* Copyright 1993 Alexandre Julliard
* Copyright 1996 Alex Korobka
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "color.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "palette.h"
#include "windef.h"
-DEFAULT_DEBUG_CHANNEL(palette);
+WINE_DEFAULT_DEBUG_CHANNEL(palette);
/***********************************************************************
diff --git a/objects/dc.c b/objects/dc.c
index 267bb01..d49bc3d 100644
--- a/objects/dc.c
+++ b/objects/dc.c
@@ -3,6 +3,19 @@
*
* Copyright 1993 Alexandre Julliard
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
@@ -11,14 +24,14 @@
#include <string.h>
#include "gdi.h"
#include "heap.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "font.h"
#include "winerror.h"
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
-DEFAULT_DEBUG_CHANNEL(dc);
+WINE_DEFAULT_DEBUG_CHANNEL(dc);
/* ### start build ### */
extern WORD CALLBACK GDI_CallTo16_word_wwll(FARPROC16,WORD,WORD,LONG,LONG);
diff --git a/objects/dcvalues.c b/objects/dcvalues.c
index a25c01c..331649c 100644
--- a/objects/dcvalues.c
+++ b/objects/dcvalues.c
@@ -3,6 +3,19 @@
*
* Copyright 1993 Alexandre Julliard
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
diff --git a/objects/dib.c b/objects/dib.c
index f14cd05..bbd16ce 100644
--- a/objects/dib.c
+++ b/objects/dib.c
@@ -3,6 +3,19 @@
*
* Copyright 1993,1994 Alexandre Julliard
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
@@ -12,10 +25,10 @@
#include "bitmap.h"
#include "selectors.h"
#include "gdi.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "palette.h"
-DEFAULT_DEBUG_CHANNEL(bitmap);
+WINE_DEFAULT_DEBUG_CHANNEL(bitmap);
/***********************************************************************
* DIB_GetDIBWidthBytes
diff --git a/objects/enhmetafile.c b/objects/enhmetafile.c
index 4aa38b0..03203d6 100644
--- a/objects/enhmetafile.c
+++ b/objects/enhmetafile.c
@@ -3,7 +3,22 @@
* Copyright 1998 Douglas Ridgway
* 1999 Huw D M Davies
*
- *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * NOTES:
+ *
* The enhanced format consists of the following elements:
*
* A header
@@ -22,10 +37,10 @@
#include "winbase.h"
#include "wingdi.h"
#include "winerror.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "metafile.h"
-DEFAULT_DEBUG_CHANNEL(enhmetafile);
+WINE_DEFAULT_DEBUG_CHANNEL(enhmetafile);
typedef struct
{
diff --git a/objects/font.c b/objects/font.c
index acad710..ad0add9 100644
--- a/objects/font.c
+++ b/objects/font.c
@@ -3,6 +3,20 @@
*
* Copyright 1993 Alexandre Julliard
* 1997 Alex Korobka
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
@@ -13,11 +27,11 @@
#include "wine/unicode.h"
#include "font.h"
#include "options.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "gdi.h"
-DEFAULT_DEBUG_CHANNEL(font);
-DECLARE_DEBUG_CHANNEL(gdi);
+WINE_DEFAULT_DEBUG_CHANNEL(font);
+WINE_DECLARE_DEBUG_CHANNEL(gdi);
#define ENUM_UNICODE 0x00000001
diff --git a/objects/gdiobj.c b/objects/gdiobj.c
index 0b1c5dc..1057c1c 100644
--- a/objects/gdiobj.c
+++ b/objects/gdiobj.c
@@ -2,6 +2,20 @@
* GDI functions
*
* Copyright 1993 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
@@ -23,10 +37,10 @@
#include "palette.h"
#include "pen.h"
#include "region.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "gdi.h"
-DEFAULT_DEBUG_CHANNEL(gdi);
+WINE_DEFAULT_DEBUG_CHANNEL(gdi);
/* ### start build ### */
extern WORD CALLBACK GDI_CallTo16_word_ll(GOBJENUMPROC16,LONG,LONG);
diff --git a/objects/linedda.c b/objects/linedda.c
index f025316..aae98bf 100644
--- a/objects/linedda.c
+++ b/objects/linedda.c
@@ -2,6 +2,20 @@
* LineDDA
*
* Copyright 1993 Bob Amstadt
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
diff --git a/objects/metafile.c b/objects/metafile.c
index dfa5e30..c6ac28a 100644
--- a/objects/metafile.c
+++ b/objects/metafile.c
@@ -4,6 +4,19 @@
* Copyright David W. Metcalfe, 1994
* Niels de Carpentier, Albrecht Kleine, Huw Davies 1996
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
@@ -41,9 +54,9 @@
#include "global.h"
#include "metafile.h"
-#include "debugtools.h"
+#include "wine/debug.h"
-DEFAULT_DEBUG_CHANNEL(metafile);
+WINE_DEFAULT_DEBUG_CHANNEL(metafile);
#include "pshpack1.h"
typedef struct
diff --git a/objects/palette.c b/objects/palette.c
index 9339e32..f789e8d 100644
--- a/objects/palette.c
+++ b/objects/palette.c
@@ -4,6 +4,21 @@
* Copyright 1993,1994 Alexandre Julliard
* Copyright 1996 Alex Korobka
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * NOTES:
* PALETTEOBJ is documented in the Dr. Dobbs Journal May 1993.
* Information in the "Undocumented Windows" is incorrect.
*/
@@ -18,10 +33,10 @@
#include "gdi.h"
#include "color.h"
#include "palette.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "winerror.h"
-DEFAULT_DEBUG_CHANNEL(palette);
+WINE_DEFAULT_DEBUG_CHANNEL(palette);
PALETTE_DRIVER *PALETTE_Driver = NULL;
diff --git a/objects/pen.c b/objects/pen.c
index ae55d64..fe5be3c 100644
--- a/objects/pen.c
+++ b/objects/pen.c
@@ -2,6 +2,20 @@
* GDI pen objects
*
* Copyright 1993 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
@@ -14,9 +28,9 @@
#include "wine/wingdi16.h"
#include "pen.h"
-#include "debugtools.h"
+#include "wine/debug.h"
-DEFAULT_DEBUG_CHANNEL(gdi);
+WINE_DEFAULT_DEBUG_CHANNEL(gdi);
diff --git a/objects/region.c b/objects/region.c
index 1251180..94696f7 100644
--- a/objects/region.c
+++ b/objects/region.c
@@ -6,6 +6,19 @@
* Modifications and additions: Copyright 1998 Huw Davies
* 1999 Alex Korobka
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/************************************************************************
@@ -85,11 +98,11 @@
#include <string.h>
#include "windef.h"
#include "wingdi.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "region.h"
#include "gdi.h"
-DEFAULT_DEBUG_CHANNEL(region);
+WINE_DEFAULT_DEBUG_CHANNEL(region);
/* 1 if two RECTs overlap.
* 0 if two RECTs do not overlap.
diff --git a/objects/text.c b/objects/text.c
index d28ec0f..26e3cd3 100644
--- a/objects/text.c
+++ b/objects/text.c
@@ -3,6 +3,19 @@
*
* Copyright 1993, 1994 Alexandre Julliard
*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <string.h>
@@ -13,10 +26,10 @@
#include "winbase.h"
#include "winerror.h"
#include "gdi.h"
-#include "debugtools.h"
+#include "wine/debug.h"
#include "winnls.h"
-DEFAULT_DEBUG_CHANNEL(text);
+WINE_DEFAULT_DEBUG_CHANNEL(text);
/***********************************************************************
* FONT_mbtowc