Make rtl use a single header. Helps for PCH and will help for the new Headers (no...
authorAlex Ionescu <aionescu@gmail.com>
Sun, 8 May 2005 05:14:46 +0000 (05:14 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 8 May 2005 05:14:46 +0000 (05:14 +0000)
svn path=/trunk/; revision=15115

35 files changed:
reactos/include/funcs.h
reactos/lib/rtl/access.c
reactos/lib/rtl/acl.c
reactos/lib/rtl/bit.c
reactos/lib/rtl/bitmap.c
reactos/lib/rtl/bootdata.c
reactos/lib/rtl/compress.c
reactos/lib/rtl/dos8dot3.c
reactos/lib/rtl/encode.c
reactos/lib/rtl/env.c
reactos/lib/rtl/error.c
reactos/lib/rtl/exception.c
reactos/lib/rtl/generictable.c
reactos/lib/rtl/heap.c
reactos/lib/rtl/image.c
reactos/lib/rtl/largeint.c
reactos/lib/rtl/luid.c
reactos/lib/rtl/mem.c
reactos/lib/rtl/network.c
reactos/lib/rtl/nls.c
reactos/lib/rtl/ppb.c
reactos/lib/rtl/process.c
reactos/lib/rtl/random.c
reactos/lib/rtl/registry.c
reactos/lib/rtl/rtl.h [new file with mode: 0644]
reactos/lib/rtl/sd.c
reactos/lib/rtl/security.c
reactos/lib/rtl/sid.c
reactos/lib/rtl/splaytree.c
reactos/lib/rtl/thread.c
reactos/lib/rtl/time.c
reactos/lib/rtl/timezone.c
reactos/lib/rtl/unicode.c
reactos/lib/rtl/unicodeprefix.c
reactos/lib/rtl/version.c

index 80137f3..24d73b7 100644 (file)
@@ -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 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,
 NTSTATUS  STDCALL RtlFindCharInUnicodeString(
     int flags,
     const UNICODE_STRING *main_str,
index aecef3f..e97440a 100644 (file)
@@ -9,8 +9,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 75b0e63..15b4025 100644 (file)
@@ -11,8 +11,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index d43d227..b5aa88d 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
+
+#define NDEBUG
+#include <debug.h>
 
 
 /* FUNCTIONS ****************************************************************/
 
 
 /* FUNCTIONS ****************************************************************/
index c98583e..da5f115 100644 (file)
@@ -28,7 +28,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 79a2fe1..1002b1f 100644 (file)
@@ -24,7 +24,7 @@
  * FILE:              lib/rtl/bootdata.c
  */
 
  * FILE:              lib/rtl/bootdata.c
  */
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 438c5dd..ac22701 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 
 #define NDEBUG
 #include <debug.h>
 
-
 /* MACROS *******************************************************************/
 
 #define COMPRESSION_FORMAT_MASK  0x00FF
 /* MACROS *******************************************************************/
 
 #define COMPRESSION_FORMAT_MASK  0x00FF
index 8e9da5e..896b30d 100644 (file)
@@ -27,8 +27,7 @@
 
 /* INCLUDES ******************************************************************/
 
 
 /* INCLUDES ******************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntos/minmax.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index c9aac07..3e66b68 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 
-#include <ntdll/ntdll.h>
+#define NDEBUG
+#include <debug.h>
 
 /* FUNCTIONS ***************************************************************/
 
 
 /* FUNCTIONS ***************************************************************/
 
index b12b718..4438eb2 100644 (file)
 
 /* INCLUDES ******************************************************************/
 
 
 /* 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
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 PPEB STDCALL RtlpCurrentPeb(VOID);
 /* FUNCTIONS *****************************************************************/
 
 PPEB STDCALL RtlpCurrentPeb(VOID);
 /* FUNCTIONS *****************************************************************/
index 3e7541b..e5477bf 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <winerror.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.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
 /* TYPES *******************************************************************/
 
 typedef struct _ERROR_TABLE
index 86a2320..a7758b3 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <windows.h>
-#include <string.h>
-#include <napi/teb.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index c38c416..3fa4855 100644 (file)
@@ -24,7 +24,7 @@
  * FILE:              lib/rtl/genertictbl.c
  */
 
  * FILE:              lib/rtl/genertictbl.c
  */
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 9bd590d..e2f3839 100644 (file)
  * require it.
  */
 
  * 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>
 
 #define NDEBUG
 #include <debug.h>
@@ -29,7 +25,6 @@
 #define TRACE_ON(x) (1)
 #endif
 
 #define TRACE_ON(x) (1)
 #endif
 
-
 static RTL_CRITICAL_SECTION RtlpProcessHeapsListLock;
 
 
 static RTL_CRITICAL_SECTION RtlpProcessHeapsListLock;
 
 
index b7aa745..c1f5489 100644 (file)
@@ -9,11 +9,10 @@
  *                  17/03/2000 Created
  */
 
  *                  17/03/2000 Created
  */
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 /* FUNCTIONS ****************************************************************/
 
 
 /* FUNCTIONS ****************************************************************/
 
index e3acd16..8f8e13b 100644 (file)
@@ -11,7 +11,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 77b75db..133b540 100644 (file)
@@ -11,8 +11,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 6b9ace3..857ebb4 100644 (file)
@@ -12,8 +12,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <string.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 310f2dc..c0b7bb9 100644 (file)
@@ -24,8 +24,7 @@
  * FILE:              lib/rtl/network.c
  */
 
  * FILE:              lib/rtl/network.c
  */
 
-#include <ddk/ntddk.h>
-#include <stdio.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 59a11c2..05cfa83 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 
  */
 
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index c923244..a1aabe0 100644 (file)
 
 /* INCLUDES ****************************************************************/
 
 
 /* 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
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 /* MACROS ****************************************************************/
 
 
 /* MACROS ****************************************************************/
 
index ff27c21..5c44ba9 100644 (file)
 
 /* INCLUDES ****************************************************************/
 
 
 /* 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
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 /* FUNCTIONS ****************************************************************/
 
 
 /* FUNCTIONS ****************************************************************/
 
index f1aba62..8134141 100644 (file)
@@ -26,8 +26,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 934824e..3f3f5e2 100644 (file)
 /* INCLUDES ****************************************************************/
 
 #define __NTDRIVER__
 /* INCLUDES ****************************************************************/
 
 #define __NTDRIVER__
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
-#include <ntos/minmax.h>
+#include "rtl.h"
 
 #define NDEBUG
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 
 /* FUNCTIONS ***************************************************************/
 
 
 /* FUNCTIONS ***************************************************************/
diff --git a/reactos/lib/rtl/rtl.h b/reactos/lib/rtl/rtl.h
new file mode 100644 (file)
index 0000000..2abc9fd
--- /dev/null
@@ -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 */
index 3ec3abb..b18423c 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 
-#include <ntdll/ntdll.h>
+#define NDEBUG
+#include <debug.h>
 
 /* FUNCTIONS ***************************************************************/
 
 
 /* FUNCTIONS ***************************************************************/
 
index c0183c2..fc199da 100644 (file)
@@ -9,8 +9,7 @@
  *                  21/11/2001 Created
  */
 
  *                  21/11/2001 Created
  */
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 1194d3a..6d70c1c 100644 (file)
  */
 
 /* INCLUDES *****************************************************************/
  */
 
 /* INCLUDES *****************************************************************/
-
 #define __NTDRIVER__
 #define __NTDRIVER__
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
-#include <string.h>
-
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index a466d6c..795bdd7 100644 (file)
@@ -24,7 +24,7 @@
  * FILE:              lib/rtl/splaytree.c
  */
 
  * FILE:              lib/rtl/splaytree.c
  */
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 50780f0..2f2314d 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ntos.h>
+#include "rtl.h"
 
 #define NDEBUG
 
 #define NDEBUG
-#include <ntdll/ntdll.h>
+#include <debug.h>
 
 /* FUNCTIONS ***************************************************************/
 
 
 /* FUNCTIONS ***************************************************************/
 
index 3e5d543..3a57256 100644 (file)
@@ -12,8 +12,7 @@
 
 /* INCLUDES *****************************************************************/
 
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index fc7fe0c..946c8d7 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
 
 /* 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>
 
 
 #define NDEBUG
 #include <debug.h>
 
-
 /* FUNCTIONS *****************************************************************/
 
 /*
 /* FUNCTIONS *****************************************************************/
 
 /*
index 483a579..b64d489 100644 (file)
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  * 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__
 #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>
 
 #define NDEBUG
 #include <debug.h>
index acb6f4e..b1db390 100644 (file)
@@ -24,7 +24,7 @@
  * FILE:              lib/rtl/unicodeprfx.c
  */
 
  * FILE:              lib/rtl/unicodeprfx.c
  */
 
-#include <ddk/ntddk.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
index 49920db..4ce738f 100644 (file)
  */
 
 /* INCLUDES *****************************************************************/
  */
 
 /* INCLUDES *****************************************************************/
-
 #define __USE_W32API
 #define __USE_W32API
-
-#include <ddk/ntddk.h>
-#include <ntdll/rtl.h>
+#include "rtl.h"
 
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>