Author: akhaldi
Date: Sun Aug 14 18:12:05 2011
New Revision: 53236
URL:
http://svn.reactos.org/svn/reactos?rev=53236&view=rev
Log:
[ROSSYM_NEW]
* Add a PCH.
Added:
trunk/reactos/lib/rossym_new/precomp.h (with props)
Modified:
trunk/reactos/lib/rossym_new/CMakeLists.txt
trunk/reactos/lib/rossym_new/delete.c
trunk/reactos/lib/rossym_new/dwarfabbrev.c
trunk/reactos/lib/rossym_new/dwarfaranges.c
trunk/reactos/lib/rossym_new/dwarfcfa.c
trunk/reactos/lib/rossym_new/dwarfget.c
trunk/reactos/lib/rossym_new/dwarfinfo.c
trunk/reactos/lib/rossym_new/dwarfopen.c
trunk/reactos/lib/rossym_new/dwarfpc.c
trunk/reactos/lib/rossym_new/dwarfpubnames.c
trunk/reactos/lib/rossym_new/find.c
trunk/reactos/lib/rossym_new/fromfile.c
trunk/reactos/lib/rossym_new/init.c
trunk/reactos/lib/rossym_new/initum.c
trunk/reactos/lib/rossym_new/pe.c
trunk/reactos/lib/rossym_new/zwfile.c
Modified: trunk/reactos/lib/rossym_new/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/CMakeLists.…
==============================================================================
--- trunk/reactos/lib/rossym_new/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/CMakeLists.txt [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -1,24 +1,25 @@
if(MSVC)
-add_library(rossym dummy.c)
+ add_library(rossym dummy.c)
else()
-add_definitions(-D_NTSYSTEM_)
-list(APPEND SOURCE
- delete.c
- dwarfabbrev.c
- dwarfaranges.c
- dwarfcfa.c
- dwarfinfo.c
- dwarfget.c
- dwarfopen.c
- dwarfpc.c
- dwarfpubnames.c
- find.c
- fromfile.c
- init.c
- initum.c
- pe.c
- zwfile.c)
-add_library(rossym ${SOURCE})
-add_dependencies(rossym psdk bugcodes)
+ add_definitions(-D_NTSYSTEM_)
+ list(APPEND SOURCE
+ delete.c
+ dwarfabbrev.c
+ dwarfaranges.c
+ dwarfcfa.c
+ dwarfget.c
+ dwarfinfo.c
+ dwarfopen.c
+ dwarfpc.c
+ dwarfpubnames.c
+ find.c
+ fromfile.c
+ init.c
+ initum.c
+ pe.c
+ zwfile.c)
+ add_library(rossym ${SOURCE})
+ add_pch(rossym precomp.h)
+ add_dependencies(rossym psdk bugcodes)
endif()
Modified: trunk/reactos/lib/rossym_new/delete.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/delete.c?re…
==============================================================================
--- trunk/reactos/lib/rossym_new/delete.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/delete.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -7,17 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg(a)reactos.com)
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include <ntimage.h>
-
-#define NDEBUG
-#include <debug.h>
-
-#include "rossympriv.h"
-#include "pe.h"
-#include "dwarf.h"
+#include <precomp.h>
VOID
RosSymDelete(PROSSYM_INFO RosSymInfo)
Modified: trunk/reactos/lib/rossym_new/dwarfabbrev.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfabbrev…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfabbrev.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfabbrev.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -6,18 +6,9 @@
* explicit reference counting if this turns out not to be acceptable.
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "rossym.h"
-#include "rossympriv.h"
-#include "dwarf.h"
static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*);
DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong);
Modified: trunk/reactos/lib/rossym_new/dwarfaranges.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfarange…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfaranges.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfaranges.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -2,16 +2,9 @@
* Dwarf address ranges parsing code.
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
int
dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit)
Modified: trunk/reactos/lib/rossym_new/dwarfcfa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfcfa.c?…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfcfa.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfcfa.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -8,17 +8,9 @@
* the same encoding.
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "pe.h"
-#include "dwarf.h"
#define trace 1
Modified: trunk/reactos/lib/rossym_new/dwarfget.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfget.c?…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfget.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfget.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -2,17 +2,9 @@
* Dwarf data format parsing routines.
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
-#include "pe.h"
ulong
dwarfget1(DwarfBuf *b)
Modified: trunk/reactos/lib/rossym_new/dwarfinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfinfo.c…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfinfo.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfinfo.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -2,19 +2,8 @@
* Dwarf info parse and search.
*/
-#define NTOSAPI
-#include <ntifs.h>
-#include <ndk/ntndk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
-
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
-#include "pe.h"
-#include <windef.h>
enum
{
Modified: trunk/reactos/lib/rossym_new/dwarfopen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfopen.c…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfopen.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfopen.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -1,14 +1,6 @@
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
-#include "pe.h"
/* Adapted for PE */
Modified: trunk/reactos/lib/rossym_new/dwarfpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfpc.c?r…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfpc.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfpc.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -11,18 +11,9 @@
* The encoding may be small, but it sure isn't simple!
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
-#include "pe.h"
-
#define trace 0
enum
Modified: trunk/reactos/lib/rossym_new/dwarfpubnames.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/dwarfpubnam…
==============================================================================
--- trunk/reactos/lib/rossym_new/dwarfpubnames.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/dwarfpubnames.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -1,12 +1,6 @@
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
static int
_dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s)
Modified: trunk/reactos/lib/rossym_new/find.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/find.c?rev=…
==============================================================================
--- trunk/reactos/lib/rossym_new/find.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/find.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -35,16 +35,9 @@
* SUCH DAMAGE.
*/
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "rossym.h"
-#include "dwarf.h"
-#include "pe.h"
BOOLEAN
RosSymGetAddressInformation
Modified: trunk/reactos/lib/rossym_new/fromfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/fromfile.c?…
==============================================================================
--- trunk/reactos/lib/rossym_new/fromfile.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/fromfile.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -7,18 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg(a)reactos.com)
*/
-#define NTOSAPI
-#include <ntifs.h>
-#include <ndk/ntndk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include "pe.h"
-#include <ntimage.h>
-
-#include "dwarf.h"
-
-#define NDEBUG
-#include <debug.h>
+#include <precomp.h>
#define SYMBOL_SIZE 18
Modified: trunk/reactos/lib/rossym_new/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/init.c?rev=…
==============================================================================
--- trunk/reactos/lib/rossym_new/init.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/init.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -7,9 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg(a)reactos.com)
*/
-#include <windows.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
+#include <precomp.h>
ROSSYM_CALLBACKS RosSymCallbacks;
Modified: trunk/reactos/lib/rossym_new/initum.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/initum.c?re…
==============================================================================
--- trunk/reactos/lib/rossym_new/initum.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/initum.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -7,16 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg(a)reactos.com)
*/
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-#include <pseh/pseh.h>
-
-#define NDEBUG
-#include <debug.h>
+#include <precomp.h>
static PVOID
RosSymAllocMemUM(ULONG_PTR Size)
Modified: trunk/reactos/lib/rossym_new/pe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/pe.c?rev=53…
==============================================================================
--- trunk/reactos/lib/rossym_new/pe.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/pe.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -1,16 +1,6 @@
-#define NTOSAPI
-#include <ntifs.h>
-#include <ndk/ntndk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-#include <ntimage.h>
+#include <precomp.h>
#define NDEBUG
-#include <debug.h>
-
-#include "dwarf.h"
-#include "pe.h"
-#include "rossympriv.h"
PeSect *pesection(Pe *pe, const char *name)
{
Added: trunk/reactos/lib/rossym_new/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/precomp.h?r…
==============================================================================
--- trunk/reactos/lib/rossym_new/precomp.h (added)
+++ trunk/reactos/lib/rossym_new/precomp.h [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -1,0 +1,12 @@
+#define NTOSAPI
+#include <ntifs.h>
+#include <ntimage.h>
+#include <ndk/psfuncs.h>
+#include <ndk/rtlfuncs.h>
+#include <reactos/rossym.h>
+
+#include "rossympriv.h"
+#include "pe.h"
+#include "dwarf.h"
+
+#include <debug.h>
Propchange: trunk/reactos/lib/rossym_new/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/lib/rossym_new/zwfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rossym_new/zwfile.c?re…
==============================================================================
--- trunk/reactos/lib/rossym_new/zwfile.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rossym_new/zwfile.c [iso-8859-1] Sun Aug 14 18:12:05 2011
@@ -7,13 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg(a)reactos.com)
*/
-#define NTOSAPI
-#include <ntddk.h>
-#include <reactos/rossym.h>
-#include "rossympriv.h"
-
-#define NDEBUG
-#include <debug.h>
+#include <precomp.h>
NTSTATUS RosSymStatus;