Use NTDLL Common Header.

svn path=/trunk/; revision=15999
This commit is contained in:
Alex Ionescu 2005-06-17 17:22:27 +00:00
parent 5e400ded46
commit 2df663e3fe
38 changed files with 57 additions and 201 deletions

View file

@ -8,14 +8,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <ntdll/csr.h>
#include <string.h>
#include <csrss/csrss.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/

View file

@ -13,15 +13,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <ntdll/csr.h>
#include <string.h>
#include <rosrtl/string.h>
#include <csrss/csrss.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/

View file

@ -7,11 +7,9 @@
* AUTHOR: Eric Kohl * AUTHOR: Eric Kohl
* DATE: 2001-06-17 * DATE: 2001-06-17
*/ */
#define NTOS_MODE_USER
#include <ntos.h>
#define NDEBUG #define NDEBUG
#include <ntdll/rtl.h> #include <ntdll.h>
/* /*
* @implemented * @implemented

View file

@ -5,16 +5,9 @@
* FILE: lib/ntdll/csr/propvar.c * FILE: lib/ntdll/csr/propvar.c
* PURPOSE: CSRSS threads API * PURPOSE: CSRSS threads API
*/ */
#define NTOS_MODE_USER
#include <ntos.h>
#include <ntdll/csr.h>
#include <string.h>
#include <csrss/csrss.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* /*
* @implemented * @implemented

View file

@ -11,8 +11,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h> #define NDEBUG
#include <debug.h> #include <ntdll.h>
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -11,12 +11,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h> #define NDEBUG
#include <ntos.h> #include <ntdll.h>
#include <ntdll/rtl.h>
#include <rosrtl/string.h>
#include <rosrtl/thread.h>
#include <ntdll/dbg.h>
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -9,11 +9,8 @@
* Created 28/12/1999 * Created 28/12/1999
*/ */
#include <ddk/ntddk.h> #define NDEBUG
#include <stdarg.h> #include <ntdll.h>
#include <stdio.h>
#include <string.h>
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/

View file

@ -42,6 +42,9 @@
* John Polstra <jdp@polstra.com>. * John Polstra <jdp@polstra.com>.
*/ */
#define NDEBUG
#include <ntdll.h>
#if 0 #if 0
#ifndef __GNUC__ #ifndef __GNUC__

View file

@ -23,17 +23,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <reactos/config.h>
#include <ddk/ntddk.h>
#include <ntos.h>
#include <ntos/ldrtypes.h>
#include <windows.h>
#include <string.h>
#include <wchar.h>
#include <ntdll/ldr.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* PROTOTYPES ****************************************************************/ /* PROTOTYPES ****************************************************************/

View file

@ -10,19 +10,9 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <reactos/config.h>
#include <ddk/ntddk.h>
#include <windows.h>
#include <ntdll/ldr.h>
#include <ntdll/rtl.h>
#include <csrss/csrss.h>
#include <ntdll/csr.h>
#include <user32/callback.h>
#include <rosrtl/string.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
#include <user32/callback.h>
VOID RtlInitializeHeapManager (VOID); VOID RtlInitializeHeapManager (VOID);
VOID LdrpInitLoader(VOID); VOID LdrpInitLoader(VOID);

View file

@ -19,22 +19,11 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <reactos/config.h> #define NDEBUG
#include <ddk/ntddk.h> #include <ntdll.h>
#include <ntos.h>
#include <windows.h>
#include <string.h>
#include <wchar.h>
#include <ntdll/ldr.h>
#include <ntdll/rtl.h>
#define LDRP_PROCESS_CREATION_TIME 0x8000000 #define LDRP_PROCESS_CREATION_TIME 0x8000000
#ifdef DBG_NTDLL_LDR_UTILS
#define NDEBUG
#endif
#include <ntdll/ntdll.h>
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/
typedef struct _TLS_DATA typedef struct _TLS_DATA

View file

@ -7,11 +7,8 @@
* PROGRAMMER: * PROGRAMMER:
*/ */
#include <ddk/ntddk.h> #define NDEBUG
#include <stdarg.h> #include <ntdll.h>
#include <stdio.h>
#include <ntdll/ntdll.h>
#include <windows.h>
BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDll, BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDll,
DWORD fdwReason, DWORD fdwReason,

View file

@ -26,9 +26,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ntos.h> #define NDEBUG
#include <string.h> #include <ntdll.h>
#include <debug.h>
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/

View file

@ -11,13 +11,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ntos.h>
#include <ntdll/rtl.h>
#include <ntos/heap.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* LOCAL TYPES ***************************************************************/ /* LOCAL TYPES ***************************************************************/

View file

@ -9,11 +9,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ntos.h> #define NDEBUG
#include <string.h> #include <ntdll.h>
#include <napi/teb.h>
/* TYPES *********************************************************************/ /* TYPES *********************************************************************/
typedef NTSTATUS (STDCALL *KERNEL_CALLBACK_FUNCTION)(PVOID Argument, typedef NTSTATUS (STDCALL *KERNEL_CALLBACK_FUNCTION)(PVOID Argument,

View file

@ -17,9 +17,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h> #define NDEBUG
#include <ntdll/rtl.h> #include <ntdll.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
/* CRC polynomial 0xedb88320 */ /* CRC polynomial 0xedb88320 */

View file

@ -12,12 +12,9 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <windows.h>
#include <ntos.h>
#include <ntdll/rtl.h> #include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -31,17 +31,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <windows.h>
#include <ntos/types.h>
#include <napi/teb.h>
#include <ntdll/rtl.h>
#include <ntdll/ldr.h>
#include <ntos.h>
#include <rosrtl/thread.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <ntdll.h>
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/

View file

@ -14,14 +14,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ntos.h>
#include <windows.h>
#include <string.h>
#include <ntdll/rtl.h>
#include <napi/teb.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <ntdll.h>
static RTL_CRITICAL_SECTION RtlpVectoredExceptionLock; static RTL_CRITICAL_SECTION RtlpVectoredExceptionLock;
static LIST_ENTRY RtlpVectoredExceptionHead; static LIST_ENTRY RtlpVectoredExceptionHead;

View file

@ -9,11 +9,8 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ddk/ntddk.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -9,13 +9,8 @@
* *
*/ */
#include <ntos.h>
#include <ntdll/rtl.h>
#include <ctype.h>
#include <ntos/minmax.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/

View file

@ -17,7 +17,8 @@
License along with the GNU C Library; see the file COPYING.LIB. If not, License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define NDEBUG
#include <ntdll.h>
double atan (double __x); double atan (double __x);
double ceil (double __x); double ceil (double __x);

View file

@ -11,13 +11,9 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ntos.h>
#include <ntos/ldrtypes.h>
#include <ddk/ldrfuncs.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
#include <ddk/ldrfuncs.h>
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -11,12 +11,8 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <windows.h>
#include <ntos.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/********************************************************************** /**********************************************************************
* NAME EXPORTED * NAME EXPORTED

View file

@ -10,15 +10,8 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntos.h>
#include <ntdll/rtl.h>
#include <ntos/minmax.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* DEFINITONS and MACROS ******************************************************/ /* DEFINITONS and MACROS ******************************************************/

View file

@ -11,15 +11,8 @@
/* INCLUDES ****************************************************************/ /* INCLUDES ****************************************************************/
#include <ntos.h>
#include <windows.h>
#include <napi/i386/segment.h>
#include <ntdll/ldr.h>
#include <ntdll/base.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -5,8 +5,8 @@
* FILE: lib/ntdll/csr/propvar.c * FILE: lib/ntdll/csr/propvar.c
* PURPOSE: CSRSS properties and variants API * PURPOSE: CSRSS properties and variants API
*/ */
#define NTOS_MODE_USER #define NDEBUG
#include <ntos.h> #include <ntdll.h>
/* /*
* @unimplemented * @unimplemented

View file

@ -26,13 +26,8 @@
/* INCLUDES ****************************************************************/ /* INCLUDES ****************************************************************/
#include <ntos.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
#define ROUND_DOWN(N, S) ((N) - ((N) % (S)))
typedef struct _RTL_RANGE_ENTRY typedef struct _RTL_RANGE_ENTRY
{ {

View file

@ -18,11 +18,8 @@
* The code is based on information published in WDJ January 1999 issue. * The code is based on information published in WDJ January 1999 issue.
*/ */
#include <ntos.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -6,8 +6,8 @@
* PURPOSE: * PURPOSE:
*/ */
#include <ddk/ntddk.h> #define NDEBUG
#include <napi/teb.h> #include <ntdll.h>
PTEB STDCALL PTEB STDCALL

View file

@ -26,10 +26,8 @@
/* INCLUDES ****************************************************************/ /* INCLUDES ****************************************************************/
#include <ddk/ntddk.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
typedef VOID (CALLBACK *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); typedef VOID (CALLBACK *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );

View file

@ -26,11 +26,7 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h> #define NDEBUG
#include <ntdll/trace.h>
#include <string.h>
#include <stdarg.h>
#include <ntdll.h> #include <ntdll.h>
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/

View file

@ -20,16 +20,12 @@
* Wirzenius wrote this portably, Torvalds fucked it up :-) * Wirzenius wrote this portably, Torvalds fucked it up :-)
*/ */
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <stdlib.h>
#define __NO_CTYPE_INLINES #define __NO_CTYPE_INLINES
#include <ctype.h> #include <ctype.h>
#include <string.h>
#include <limits.h> #include <limits.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
#define ZEROPAD 1 /* pad with zero */ #define ZEROPAD 1 /* pad with zero */

View file

@ -1,12 +1,8 @@
/**/ /**/
#include <stdio.h>
#include <ntos.h>
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <ntdll/ntdll.h> #include <ntdll.h>
#include <stdio.h>
/* helper function for *scanf. Returns the value of character c in the /* helper function for *scanf. Returns the value of character c in the
* given base, or -1 if the given character is not a digit of the base. * given base, or -1 if the given character is not a digit of the base.

View file

@ -22,17 +22,11 @@
* Wirzenius wrote this portably, Torvalds fucked it up :-) * Wirzenius wrote this portably, Torvalds fucked it up :-)
*/ */
#include <ddk/ntddk.h> #define NDEBUG
#include <stdarg.h> #include <ntdll.h>
#include <stdlib.h>
#include <ctype.h>
#include <wchar.h> #include <wchar.h>
#include <limits.h> #include <limits.h>
#define NDEBUG
#include <ntdll/ntdll.h>
#define ZEROPAD 1 /* pad with zero */ #define ZEROPAD 1 /* pad with zero */
#define SIGN 2 /* unsigned/signed long */ #define SIGN 2 /* unsigned/signed long */
#define PLUS 4 /* show plus */ #define PLUS 4 /* show plus */

View file

@ -6,10 +6,10 @@
* PURPOSE: converts a multi byte string to a unicode string * PURPOSE: converts a multi byte string to a unicode string
*/ */
#include <ntos.h> #define NDEBUG
#include <ntdll.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -6,7 +6,8 @@
* PURPOSE: converts a unicode string to a multi byte string * PURPOSE: converts a unicode string to a multi byte string
*/ */
#include <ntos.h> #define NDEBUG
#include <ntdll.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -12,7 +12,6 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <wchar.h> #include <wchar.h>