mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Make rtl use a single header. Helps for PCH and will help for the new Headers (no need to change each file)
svn path=/trunk/; revision=15115
This commit is contained in:
parent
f60871a43b
commit
35deccffea
35 changed files with 85 additions and 105 deletions
|
@ -2087,10 +2087,12 @@ NTSTATUS STDCALL RtlWalkHeap( HANDLE heap, PVOID entry_ptr );
|
||||||
NTSTATUS STDCALL LdrLockLoaderLock(ULONG flags, ULONG *result, ULONG *magic);
|
NTSTATUS STDCALL LdrLockLoaderLock(ULONG flags, ULONG *result, ULONG *magic);
|
||||||
NTSTATUS STDCALL LdrUnlockLoaderLock(ULONG flags, ULONG magic);
|
NTSTATUS STDCALL LdrUnlockLoaderLock(ULONG flags, ULONG magic);
|
||||||
|
|
||||||
NTSTATUS STDCALL RtlDuplicateUnicodeString(
|
NTSTATUS STDCALL
|
||||||
int add_nul,
|
RtlDuplicateUnicodeString(
|
||||||
const UNICODE_STRING *source,
|
INT AddNull,
|
||||||
UNICODE_STRING *destination);
|
IN PUNICODE_STRING SourceString,
|
||||||
|
PUNICODE_STRING DestinationString);
|
||||||
|
|
||||||
NTSTATUS STDCALL RtlFindCharInUnicodeString(
|
NTSTATUS STDCALL RtlFindCharInUnicodeString(
|
||||||
int flags,
|
int flags,
|
||||||
const UNICODE_STRING *main_str,
|
const UNICODE_STRING *main_str,
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -26,7 +26,10 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* FILE: lib/rtl/bootdata.c
|
* FILE: lib/rtl/bootdata.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -27,12 +27,11 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/* MACROS *******************************************************************/
|
/* MACROS *******************************************************************/
|
||||||
|
|
||||||
#define COMPRESSION_FORMAT_MASK 0x00FF
|
#define COMPRESSION_FORMAT_MASK 0x00FF
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
|
|
||||||
/* INCLUDES ******************************************************************/
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntos/minmax.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -12,9 +12,10 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#include <ntdll/ntdll.h>
|
#define NDEBUG
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,10 @@
|
||||||
|
|
||||||
/* INCLUDES ******************************************************************/
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
#include <napi/teb.h>
|
|
||||||
#include <ntos/minmax.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <ntdll/ntdll.h>
|
#include <debug.h>
|
||||||
|
|
||||||
PPEB STDCALL RtlpCurrentPeb(VOID);
|
PPEB STDCALL RtlpCurrentPeb(VOID);
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
|
@ -19,19 +19,11 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <winerror.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#ifndef HIWORD
|
|
||||||
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
|
|
||||||
#endif
|
|
||||||
#ifndef LOWORD
|
|
||||||
#define LOWORD(l) ((WORD)(l))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* TYPES *******************************************************************/
|
/* TYPES *******************************************************************/
|
||||||
|
|
||||||
typedef struct _ERROR_TABLE
|
typedef struct _ERROR_TABLE
|
||||||
|
|
|
@ -15,10 +15,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <windows.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <napi/teb.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* FILE: lib/rtl/genertictbl.c
|
* FILE: lib/rtl/genertictbl.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -12,11 +12,7 @@
|
||||||
* require it.
|
* require it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include "rtl.h"
|
||||||
#include <ddk/ntddk.h>
|
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
#include <ntos/heap.h>
|
|
||||||
#include <ntos/minmax.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
@ -29,7 +25,6 @@
|
||||||
#define TRACE_ON(x) (1)
|
#define TRACE_ON(x) (1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static RTL_CRITICAL_SECTION RtlpProcessHeapsListLock;
|
static RTL_CRITICAL_SECTION RtlpProcessHeapsListLock;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,10 @@
|
||||||
* 17/03/2000 Created
|
* 17/03/2000 Created
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <ntdll/ntdll.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
* FILE: lib/rtl/network.c
|
* FILE: lib/rtl/network.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -11,14 +11,10 @@
|
||||||
|
|
||||||
/* INCLUDES ****************************************************************/
|
/* INCLUDES ****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/ldr.h>
|
|
||||||
#include <napi/teb.h>
|
|
||||||
#include <ntdll/base.h>
|
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <ntdll/ntdll.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* MACROS ****************************************************************/
|
/* MACROS ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,10 @@
|
||||||
|
|
||||||
/* INCLUDES ****************************************************************/
|
/* INCLUDES ****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.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 <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -18,12 +18,10 @@
|
||||||
/* INCLUDES ****************************************************************/
|
/* INCLUDES ****************************************************************/
|
||||||
|
|
||||||
#define __NTDRIVER__
|
#define __NTDRIVER__
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
#include <ntos/minmax.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <ntdll/ntdll.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
33
reactos/lib/rtl/rtl.h
Normal file
33
reactos/lib/rtl/rtl.h
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
* PROJECT: ReactOS System Libraries
|
||||||
|
* FILE: lib/rtl/rtl.h
|
||||||
|
* PURPOSE: Run-Time Libary Header
|
||||||
|
* PROGRAMMER: Alex Ionescu
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <ddk/ntddk.h>
|
||||||
|
#include <windows.h>
|
||||||
|
#include <ntdll/rtl.h>
|
||||||
|
#include <napi/teb.h>
|
||||||
|
#include <ntos/minmax.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <napi/i386/segment.h>
|
||||||
|
#include <ntdll/ldr.h>
|
||||||
|
#include <ntdll/base.h>
|
||||||
|
#include <ntdll/rtl.h>
|
||||||
|
#include <rosrtl/thread.h>
|
||||||
|
#include <winerror.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
|
||||||
|
#ifndef HIWORD
|
||||||
|
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
|
||||||
|
#endif
|
||||||
|
#ifndef LOWORD
|
||||||
|
#define LOWORD(l) ((WORD)(l))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* EOF */
|
|
@ -11,9 +11,10 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#include <ntdll/ntdll.h>
|
#define NDEBUG
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
* 21/11/2001 Created
|
* 21/11/2001 Created
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -10,12 +10,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#define __NTDRIVER__
|
#define __NTDRIVER__
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* FILE: lib/rtl/splaytree.c
|
* FILE: lib/rtl/splaytree.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ntos.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <ntdll/ntdll.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -11,15 +11,11 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
#include <ntos/registry.h>
|
|
||||||
#include <ntos/time.h>
|
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -19,16 +19,8 @@
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#define __NTDRIVER__
|
#define __NTDRIVER__
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#include <ntos/minmax.h>
|
|
||||||
#define __NO_CTYPE_INLINES
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* FILE: lib/rtl/unicodeprfx.c
|
* FILE: lib/rtl/unicodeprfx.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include "rtl.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -29,11 +29,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#define __USE_W32API
|
#define __USE_W32API
|
||||||
|
#include "rtl.h"
|
||||||
#include <ddk/ntddk.h>
|
|
||||||
#include <ntdll/rtl.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
Loading…
Reference in a new issue