[ROSSYM_NEW]

* Add a PCH.

svn path=/trunk/; revision=53236
This commit is contained in:
Amine Khaldi 2011-08-14 18:12:05 +00:00
parent e3a1ac4593
commit 6b69d04d59
17 changed files with 48 additions and 156 deletions

View file

@ -1,24 +1,25 @@
if(MSVC) if(MSVC)
add_library(rossym dummy.c) add_library(rossym dummy.c)
else() else()
add_definitions(-D_NTSYSTEM_) add_definitions(-D_NTSYSTEM_)
list(APPEND SOURCE list(APPEND SOURCE
delete.c delete.c
dwarfabbrev.c dwarfabbrev.c
dwarfaranges.c dwarfaranges.c
dwarfcfa.c dwarfcfa.c
dwarfinfo.c dwarfget.c
dwarfget.c dwarfinfo.c
dwarfopen.c dwarfopen.c
dwarfpc.c dwarfpc.c
dwarfpubnames.c dwarfpubnames.c
find.c find.c
fromfile.c fromfile.c
init.c init.c
initum.c initum.c
pe.c pe.c
zwfile.c) zwfile.c)
add_library(rossym ${SOURCE}) add_library(rossym ${SOURCE})
add_dependencies(rossym psdk bugcodes) add_pch(rossym precomp.h)
add_dependencies(rossym psdk bugcodes)
endif() endif()

View file

@ -7,17 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include <ntimage.h>
#define NDEBUG
#include <debug.h>
#include "rossympriv.h"
#include "pe.h"
#include "dwarf.h"
VOID VOID
RosSymDelete(PROSSYM_INFO RosSymInfo) RosSymDelete(PROSSYM_INFO RosSymInfo)

View file

@ -6,18 +6,9 @@
* explicit reference counting if this turns out not to be acceptable. * explicit reference counting if this turns out not to be acceptable.
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "rossym.h"
#include "rossympriv.h"
#include "dwarf.h"
static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*); static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*);
DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong); DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong);

View file

@ -2,16 +2,9 @@
* Dwarf address ranges parsing code. * Dwarf address ranges parsing code.
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
int int
dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit) dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit)

View file

@ -8,17 +8,9 @@
* the same encoding. * the same encoding.
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "pe.h"
#include "dwarf.h"
#define trace 1 #define trace 1

View file

@ -2,17 +2,9 @@
* Dwarf data format parsing routines. * Dwarf data format parsing routines.
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
#include "pe.h"
ulong ulong
dwarfget1(DwarfBuf *b) dwarfget1(DwarfBuf *b)

View file

@ -2,19 +2,8 @@
* Dwarf info parse and search. * Dwarf info parse and search.
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntifs.h>
#include <ndk/ntndk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
#include "pe.h"
#include <windef.h>
enum enum
{ {

View file

@ -1,14 +1,6 @@
#define NTOSAPI
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#include <precomp.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
#include "pe.h"
/* Adapted for PE */ /* Adapted for PE */

View file

@ -11,18 +11,9 @@
* The encoding may be small, but it sure isn't simple! * The encoding may be small, but it sure isn't simple!
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
#include "pe.h"
#define trace 0 #define trace 0
enum enum

View file

@ -1,12 +1,6 @@
#define NTOSAPI
#include <ntddk.h>
#include <reactos/rossym.h>
#include <ntimage.h>
#include <precomp.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
static int static int
_dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s) _dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s)

View file

@ -35,16 +35,9 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <ntddk.h> #include <precomp.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "rossym.h"
#include "dwarf.h"
#include "pe.h"
BOOLEAN BOOLEAN
RosSymGetAddressInformation RosSymGetAddressInformation

View file

@ -7,18 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#define NTOSAPI #include <precomp.h>
#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>
#define SYMBOL_SIZE 18 #define SYMBOL_SIZE 18

View file

@ -7,9 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#include <windows.h> #include <precomp.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
ROSSYM_CALLBACKS RosSymCallbacks; ROSSYM_CALLBACKS RosSymCallbacks;

View file

@ -7,16 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#define WIN32_NO_STATUS #include <precomp.h>
#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>
static PVOID static PVOID
RosSymAllocMemUM(ULONG_PTR Size) RosSymAllocMemUM(ULONG_PTR Size)

View file

@ -1,16 +1,6 @@
#define NTOSAPI #include <precomp.h>
#include <ntifs.h>
#include <ndk/ntndk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#define NDEBUG #define NDEBUG
#include <debug.h>
#include "dwarf.h"
#include "pe.h"
#include "rossympriv.h"
PeSect *pesection(Pe *pe, const char *name) PeSect *pesection(Pe *pe, const char *name)
{ {

View file

@ -0,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>

View file

@ -7,13 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#define NTOSAPI #include <precomp.h>
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#define NDEBUG
#include <debug.h>
NTSTATUS RosSymStatus; NTSTATUS RosSymStatus;