[WINHLP32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 13 Jan 2014 12:43:38 +0000 (12:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 13 Jan 2014 12:43:38 +0000 (12:43 +0000)
* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header/resource file.
CORE-7716

svn path=/trunk/; revision=61602

36 files changed:
reactos/base/applications/winhlp32/callback.c
reactos/base/applications/winhlp32/hlpfile.c
reactos/base/applications/winhlp32/lang/Bg.rc
reactos/base/applications/winhlp32/lang/Cs.rc
reactos/base/applications/winhlp32/lang/Da.rc
reactos/base/applications/winhlp32/lang/De.rc
reactos/base/applications/winhlp32/lang/En.rc
reactos/base/applications/winhlp32/lang/Es.rc
reactos/base/applications/winhlp32/lang/Fi.rc
reactos/base/applications/winhlp32/lang/Fr.rc
reactos/base/applications/winhlp32/lang/He.rc
reactos/base/applications/winhlp32/lang/Hu.rc
reactos/base/applications/winhlp32/lang/It.rc
reactos/base/applications/winhlp32/lang/Ja.rc
reactos/base/applications/winhlp32/lang/Ko.rc
reactos/base/applications/winhlp32/lang/Lt.rc
reactos/base/applications/winhlp32/lang/Nl.rc
reactos/base/applications/winhlp32/lang/No.rc
reactos/base/applications/winhlp32/lang/Pl.rc
reactos/base/applications/winhlp32/lang/Pt.rc
reactos/base/applications/winhlp32/lang/Rm.rc
reactos/base/applications/winhlp32/lang/Ro.rc
reactos/base/applications/winhlp32/lang/Ru.rc
reactos/base/applications/winhlp32/lang/Si.rc
reactos/base/applications/winhlp32/lang/Sk.rc
reactos/base/applications/winhlp32/lang/Sq.rc
reactos/base/applications/winhlp32/lang/Sr.rc
reactos/base/applications/winhlp32/lang/Sv.rc
reactos/base/applications/winhlp32/lang/Tr.rc
reactos/base/applications/winhlp32/lang/Uk.rc
reactos/base/applications/winhlp32/lang/Zh.rc
reactos/base/applications/winhlp32/macro.c
reactos/base/applications/winhlp32/macro.h
reactos/base/applications/winhlp32/macro.lex.yy.c
reactos/base/applications/winhlp32/winhelp.c
reactos/base/applications/winhlp32/winhelp.h

index 4c95a10..7f7e169 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <windef.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <wine/debug.h>
-
 #include "winhelp.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
-
 static WORD CALLBACK WHD_GetFSError(void)
 {
     WINE_FIXME("()\n");
index fbde82e..096904f 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-//#include <stdarg.h>
-#include <stdio.h>
-//#include <string.h>
-#include <windef.h>
-//#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <wine/debug.h>
-
 #include "winhelp.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
-
 static inline unsigned short GET_USHORT(const BYTE* buffer, unsigned i)
 {
     return (BYTE)buffer[i] + 0x100 * (BYTE)buffer[i + 1];
index 191b5d0..089ae32 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
 
 /* Menu */
index 16fc70b..28f63ad 100644 (file)
@@ -21,8 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
 
 /* Czech strings in CP1250 */
index 7b2b6d1..2e5e0de 100644 (file)
@@ -21,8 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
index 22554aa..e0576b1 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
 
 #pragma code_page(65001)
index 6d987db..555bfda 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* Menu */
 
 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
index 940585e..7b6a308 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
 
 /* Menu */
index eb5a952..98238d2 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT
 
 /* Menu */
index 2b8ea8f..3977a3b 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
 
 /* UTF-8 */
index 2b9da46..c3d8938 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 /* Menu */
index 7699677..07b0f6c 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
 
 /* Menu */
index f0dfd0c..e10c91c 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index a93e5a3..aeb0da7 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
 
 /* UTF-8 */
index 1acc2db..37df48a 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
index 195740c..bfcd27f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 0886009..5250e8e 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
index a18dbc4..036c150 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
 
 /* Menu */
index fb2114d..23710bf 100644 (file)
@@ -21,8 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
 
 /* Menu */
index 8621675..ab63da6 100644 (file)
@@ -25,8 +25,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 /* Menu */
index 60403f0..e58672b 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_ROMANSH, SUBLANG_DEFAULT
 
 #pragma code_page(65001)
index 69b088f..5cd51d2 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
 
 #pragma code_page(65001)
index 456f7e2..ad30c3f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 023b28a..1b0bce7 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
 
 #pragma code_page(65001)
index d1abcff..c2276bf 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
 
 MAIN_MENU MENU
index 25dcd79..67b3112 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* Menu */
 
 LANGUAGE LANG_ALBANIAN, SUBLANG_NEUTRAL
index a33e75a..a7bef59 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 #pragma code_page(65001)
 
 /* Menu */
index c913320..cf03e05 100644 (file)
@@ -22,8 +22,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
 
 /* Menu */
index aa061c5..32c2ba0 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
 
 /* Menu */
index 8009697..e71332d 100644 (file)
@@ -23,8 +23,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 2532cb3..5c40837 100644 (file)
@@ -21,8 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "winhelp_res.h"
-
 /* Chinese text is encoded in UTF-8 */
 #pragma code_page(65001)
 
index a44393f..5a86c81 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <commdlg.h>
-#include <shellapi.h>
-#include <wine/debug.h>
-
 #include "winhelp.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
+#include <shellapi.h>
 
 /**************************************************/
 /*               Macro table                      */
index e4f2a31..a82b90e 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-//#include <stdarg.h>
-
-//#include "windef.h"
-#include <winbase.h>
-
 struct lexret {
   LPCSTR        proto;
   BOOL          bool;
index 1f9a5e3..b7dc9c5 100644 (file)
@@ -502,21 +502,11 @@ char *yytext;
 #define YY_NO_INPUT 1
 
 #line 26 "macro.lex.l"
-#include "config.h"
-#include <assert.h>
-#include <stdarg.h>
+#include <config.h>
 
 #define YY_NO_UNISTD_H
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
 #include "winhelp.h"
 
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
-
 struct lex_data {
     LPCSTR   macroptr;
     LPSTR    strptr;
index 0c08e02..754fc1a 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <assert.h>
-#include <stdio.h>
-//#include <string.h>
-//#include <stdarg.h>
-//#include <stdlib.h>
-
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
-#include <windef.h>
-//#include "winbase.h"
-#include <wingdi.h>
-#include <winuser.h>
-#include <commdlg.h>
 #include "winhelp.h"
-//#include "winhelp_res.h"
-//#include "shellapi.h"
+
 #include <richedit.h>
 #include <commctrl.h>
 
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
-
 WINHELP_GLOBALS Globals = {3, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, {{{NULL,NULL}},0}, NULL};
 
 #define CTL_ID_BUTTON   0x700
index ac3da22..b98c04f 100644 (file)
 
 #ifndef RC_INVOKED
 
-//#include <stdarg.h>
+#include <assert.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <commdlg.h>
 
 #include "hlpfile.h"
-//#include "windef.h"
-//#include "winbase.h"
 #include "macro.h"
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
+
 #include "winhelp_res.h"
 
 typedef struct tagHelpButton