mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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 LdrUnlockLoaderLock(ULONG flags, ULONG magic);
|
||||
|
||||
NTSTATUS STDCALL RtlDuplicateUnicodeString(
|
||||
int add_nul,
|
||||
const UNICODE_STRING *source,
|
||||
UNICODE_STRING *destination);
|
||||
NTSTATUS STDCALL
|
||||
RtlDuplicateUnicodeString(
|
||||
INT AddNull,
|
||||
IN PUNICODE_STRING SourceString,
|
||||
PUNICODE_STRING DestinationString);
|
||||
|
||||
NTSTATUS STDCALL RtlFindCharInUnicodeString(
|
||||
int flags,
|
||||
const UNICODE_STRING *main_str,
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -26,7 +26,10 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* FILE: lib/rtl/bootdata.c
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -27,12 +27,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* MACROS *******************************************************************/
|
||||
|
||||
#define COMPRESSION_FORMAT_MASK 0x00FF
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -12,9 +12,10 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#include <ntdll/ntdll.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
|
|
|
@ -11,14 +11,10 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <napi/teb.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include <string.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
PPEB STDCALL RtlpCurrentPeb(VOID);
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
|
|
@ -19,19 +19,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <winerror.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#ifndef HIWORD
|
||||
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
|
||||
#endif
|
||||
#ifndef LOWORD
|
||||
#define LOWORD(l) ((WORD)(l))
|
||||
#endif
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
typedef struct _ERROR_TABLE
|
||||
|
|
|
@ -15,10 +15,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <windows.h>
|
||||
#include <string.h>
|
||||
#include <napi/teb.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* FILE: lib/rtl/genertictbl.c
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -12,11 +12,7 @@
|
|||
* require it.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ntos/heap.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
@ -29,7 +25,6 @@
|
|||
#define TRACE_ON(x) (1)
|
||||
#endif
|
||||
|
||||
|
||||
static RTL_CRITICAL_SECTION RtlpProcessHeapsListLock;
|
||||
|
||||
|
||||
|
|
|
@ -9,11 +9,10 @@
|
|||
* 17/03/2000 Created
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <string.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
* FILE: lib/rtl/network.c
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <stdio.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -11,14 +11,10 @@
|
|||
|
||||
/* INCLUDES ****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/ldr.h>
|
||||
#include <napi/teb.h>
|
||||
#include <ntdll/base.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
/* MACROS ****************************************************************/
|
||||
|
||||
|
|
|
@ -11,14 +11,10 @@
|
|||
|
||||
/* INCLUDES ****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <napi/i386/segment.h>
|
||||
#include <ntdll/ldr.h>
|
||||
#include <ntdll/base.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -18,12 +18,10 @@
|
|||
/* INCLUDES ****************************************************************/
|
||||
|
||||
#define __NTDRIVER__
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* 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 *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#include <ntdll/ntdll.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
* 21/11/2001 Created
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -10,12 +10,8 @@
|
|||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#define __NTDRIVER__
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* FILE: lib/rtl/splaytree.c
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ntos.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -11,15 +11,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntos/registry.h>
|
||||
#include <ntos/time.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -19,16 +19,8 @@
|
|||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
|
||||
#define __NTDRIVER__
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include <ntos/minmax.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* FILE: lib/rtl/unicodeprfx.c
|
||||
*/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -29,11 +29,8 @@
|
|||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#define __USE_W32API
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include "rtl.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
Loading…
Reference in a new issue