Fixed multiple STATUS_xxxx inclusions.

svn path=/trunk/; revision=675
This commit is contained in:
Eric Kohl 1999-09-29 23:15:14 +00:00
parent 56e30e8907
commit d63c23131c
9 changed files with 47 additions and 67 deletions

View file

@ -18,6 +18,7 @@ extern "C"
/* INCLUDES ***************************************************************/ /* INCLUDES ***************************************************************/
#define WIN32_NO_STATUS
#include <windows.h> #include <windows.h>
/* GCC can not handle __fastcall */ /* GCC can not handle __fastcall */

View file

@ -17,9 +17,21 @@
* FIXME: These may not be the actual values used by NT * FIXME: These may not be the actual values used by NT
*/ */
#define STATUS_SUCCESS (0x0) #define STATUS_SUCCESS (0x00000000)
#define STATUS_MORE_ENTRIES (0x105) #define STATUS_WAIT_0 (0x00000000)
#define STATUS_WAIT_63 (0x0000003F)
#define STATUS_ABANDONED (0x00000080)
#define STATUS_ABANDONED_WAIT_0 (0x00000080)
#define STATUS_ABANDONED_WAIT_63 (0x000000BF)
#define STATUS_USER_APC (0x000000C0)
#define STATUS_KERNEL_APC (0x00000100)
#define STATUS_ALERTED (0x00000101)
#define STATUS_TIMEOUT (0x00000102)
#define STATUS_PENDING (0x00000103)
#define STATUS_REPARSE (0x00000104)
#define STATUS_MORE_ENTRIES (0x00000105)
#define STATUS_NOTIFY_ENUM_DIR (0x10C) #define STATUS_NOTIFY_ENUM_DIR (0x10C)
#define STATUS_OBJECT_EXISTS (0x40000000) #define STATUS_OBJECT_EXISTS (0x40000000)
#define STATUS_THREAD_WAS_SUSPENDED (0x40000001) #define STATUS_THREAD_WAS_SUSPENDED (0x40000001)
#define STATUS_WORKING_SET_LIMIT_RANGE (0x40000002) #define STATUS_WORKING_SET_LIMIT_RANGE (0x40000002)

View file

@ -37,11 +37,13 @@
#define EXCEPTION_MAXIMUM_PARAMETERS (15) #define EXCEPTION_MAXIMUM_PARAMETERS (15)
#define ANYSIZE_ARRAY (1) #define ANYSIZE_ARRAY (1)
#ifndef WIN32_NO_STATUS
#define STATUS_WAIT_0 (0x00000000L) #define STATUS_WAIT_0 (0x00000000L)
#define STATUS_ABANDONED_WAIT_0 (0x00000080L) #define STATUS_ABANDONED_WAIT_0 (0x00000080L)
#define STATUS_USER_APC (0x000000C0L) #define STATUS_USER_APC (0x000000C0L)
#define STATUS_TIMEOUT (0x00000102L) #define STATUS_TIMEOUT (0x00000102L)
#define STATUS_PENDING (0x00000103L) #define STATUS_PENDING (0x00000103L)
#endif /* WIN32_NO_STATUS */
#define SEC_COMMIT (134217728) #define SEC_COMMIT (134217728)
#define SEC_IMAGE (16777216) #define SEC_IMAGE (16777216)

View file

@ -1,4 +1,4 @@
/* $Id: startup.c,v 1.9 1999/08/29 06:59:04 ea Exp $ /* $Id: startup.c,v 1.10 1999/09/29 23:12:49 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -11,6 +11,7 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <reactos/config.h> #include <reactos/config.h>
#define WIN32_NO_STATUS
#define WIN32_NO_PEHDR #define WIN32_NO_PEHDR
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>

View file

@ -1,4 +1,4 @@
/* $Id: utils.c,v 1.10 1999/08/29 06:59:04 ea Exp $ /* $Id: utils.c,v 1.11 1999/09/29 23:12:49 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -11,6 +11,7 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <reactos/config.h> #include <reactos/config.h>
#define WIN32_NO_STATUS
#define WIN32_NO_PEHDR #define WIN32_NO_PEHDR
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>

View file

@ -6,10 +6,9 @@
* PROGRAMMER: * PROGRAMMER:
*/ */
#include <windows.h> #include <ddk/ntddk.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <ddk/ntddk.h>
#include <ntdll/ntdll.h> #include <ntdll/ntdll.h>
void dprintf(char* fmt,...) void dprintf(char* fmt,...)
@ -39,4 +38,4 @@ BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDll,
return TRUE; return TRUE;
} }
/* EOF */

View file

@ -9,7 +9,7 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <windows.h> #include <ddk/ntddk.h>
#include <ntdll/rtl.h> #include <ntdll/rtl.h>
#include <ntdll/ntdll.h> #include <ntdll/ntdll.h>

View file

@ -1,4 +1,5 @@
/* /* $Id: largeint.c,v 1.4 1999/09/29 23:09:44 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: lib/ntdll/rtl/largeint.c * FILE: lib/ntdll/rtl/largeint.c
@ -10,9 +11,9 @@
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <internal/ke.h> #include <internal/ke.h>
#include <internal/linkage.h> #include <internal/linkage.h>
#include <ddk/ntddk.h>
#define NDEBUG #define NDEBUG
#include <internal/debug.h> #include <internal/debug.h>
@ -26,9 +27,10 @@ typedef unsigned long long int ULLI, *PULLI;
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
LARGE_INTEGER RtlLargeIntegerDivide(LARGE_INTEGER Dividend, LARGE_INTEGER
LARGE_INTEGER Divisor, RtlLargeIntegerDivide(LARGE_INTEGER Dividend,
PLARGE_INTEGER Remainder) LARGE_INTEGER Divisor,
PLARGE_INTEGER Remainder)
{ {
} }
@ -107,10 +109,6 @@ RtlLargeIntegerEqualTo(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart == Operand2.QuadPart; return Operand1.QuadPart == Operand2.QuadPart;
#if 0
return Operand1.HighPart == Operand2.HighPart &&
Operand1.LowPart == Operand2.LowPart;
#endif
} }
BOOLEAN BOOLEAN
@ -124,11 +122,6 @@ RtlLargeIntegerGreaterThan(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart > Operand2.QuadPart; return Operand1.QuadPart > Operand2.QuadPart;
#if 0
return Operand1.HighPart > Operand2.HighPart ||
(Operand1.HighPart == Operand2.HighPart &&
Operand1.LowPart > Operand2.LowPart);
#endif
} }
BOOLEAN BOOLEAN
@ -136,30 +129,18 @@ RtlLargeIntegerGreaterThanOrEqualTo(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart >= Operand2.QuadPart; return Operand1.QuadPart >= Operand2.QuadPart;
#if 0
return Operand1.HighPart > Operand2.HighPart ||
(Operand1.HighPart == Operand2.HighPart &&
Operand1.LowPart >= Operand2.LowPart);
#endif
} }
BOOLEAN BOOLEAN
RtlLargeIntegerGreaterThanOrEqualToZero(LARGE_INTEGER Operand1) RtlLargeIntegerGreaterThanOrEqualToZero(LARGE_INTEGER Operand1)
{ {
return Operand1.QuadPart > 0; return Operand1.QuadPart > 0;
#if 0
return Operand1.HighPart >= 0;
#endif
} }
BOOLEAN BOOLEAN
RtlLargeIntegerGreaterThanZero(LARGE_INTEGER Operand1) RtlLargeIntegerGreaterThanZero(LARGE_INTEGER Operand1)
{ {
return Operand1.QuadPart >= 0; return Operand1.QuadPart >= 0;
#if 0
return Operand1.HighPart > 0 ||
(Operand1.HighPart == 0 && Operand1.LowPart > 0);
#endif
} }
BOOLEAN BOOLEAN
@ -167,11 +148,6 @@ RtlLargeIntegerLessThan(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart < Operand2.QuadPart; return Operand1.QuadPart < Operand2.QuadPart;
#if 0
return Operand1.HighPart < Operand2.HighPart ||
(Operand1.HighPart == Operand2.HighPart &&
Operand1.LowPart < Operand2.LowPart);
#endif
} }
BOOLEAN BOOLEAN
@ -179,33 +155,22 @@ RtlLargeIntegerLessThanOrEqualTo(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart <= Operand2.QuadPart; return Operand1.QuadPart <= Operand2.QuadPart;
#if 0
return Operand1.HighPart < Operand2.HighPart ||
(Operand1.HighPart == Operand2.HighPart &&
Operand1.LowPart <= Operand2.LowPart);
#endif
} }
BOOLEAN BOOLEAN
RtlLargeIntegerLessThanOrEqualToZero(LARGE_INTEGER Operand) RtlLargeIntegerLessThanOrEqualToZero(LARGE_INTEGER Operand)
{ {
return Operand.QuadPart <= 0; return Operand.QuadPart <= 0;
#if 0
return Operand.HighPart < 0 ||
(Operand.HighPart == 0 && Operand.LowPart == 0);
#endif
} }
BOOLEAN BOOLEAN
RtlLargeIntegerLessThanZero(LARGE_INTEGER Operand) RtlLargeIntegerLessThanZero(LARGE_INTEGER Operand)
{ {
return Operand.QuadPart < 0; return Operand.QuadPart < 0;
#if 0
return Operand.HighPart < 0;
#endif
} }
LARGE_INTEGER RtlLargeIntegerNegate(LARGE_INTEGER Subtrahend) LARGE_INTEGER
RtlLargeIntegerNegate(LARGE_INTEGER Subtrahend)
{ {
LARGE_INTEGER RC; LARGE_INTEGER RC;
@ -219,23 +184,17 @@ RtlLargeIntegerNotEqualTo(LARGE_INTEGER Operand1,
LARGE_INTEGER Operand2) LARGE_INTEGER Operand2)
{ {
return Operand1.QuadPart != Operand2.QuadPart; return Operand1.QuadPart != Operand2.QuadPart;
#if 0
return Operand1.LowPart != Operand2.LowPart ||
Operand1.HighPart != Operand2.HighPart;
#endif
} }
BOOLEAN BOOLEAN
RtlLargeIntegerNotEqualToZero(LARGE_INTEGER Operand) RtlLargeIntegerNotEqualToZero(LARGE_INTEGER Operand)
{ {
return Operand.QuadPart != 0; return Operand.QuadPart != 0;
#if 0
return Operand.LowPart != 0 || Operand.HighPart != 0;
#endif
} }
LARGE_INTEGER RtlLargeIntegerShiftLeft(LARGE_INTEGER LargeInteger, LARGE_INTEGER
CCHAR ShiftCount) RtlLargeIntegerShiftLeft(LARGE_INTEGER LargeInteger,
CCHAR ShiftCount)
{ {
LARGE_INTEGER RC; LARGE_INTEGER RC;
@ -244,8 +203,9 @@ LARGE_INTEGER RtlLargeIntegerShiftLeft(LARGE_INTEGER LargeInteger,
return RC; return RC;
} }
LARGE_INTEGER RtlLargeIntegerShiftRight(LARGE_INTEGER LargeInteger, LARGE_INTEGER
CCHAR ShiftCount) RtlLargeIntegerShiftRight(LARGE_INTEGER LargeInteger,
CCHAR ShiftCount)
{ {
LARGE_INTEGER RC; LARGE_INTEGER RC;
@ -254,8 +214,9 @@ LARGE_INTEGER RtlLargeIntegerShiftRight(LARGE_INTEGER LargeInteger,
return RC; return RC;
} }
LARGE_INTEGER RtlLargeIntegerSubtract(LARGE_INTEGER Minuend, LARGE_INTEGER
LARGE_INTEGER Subtrahend) RtlLargeIntegerSubtract(LARGE_INTEGER Minuend,
LARGE_INTEGER Subtrahend)
{ {
LARGE_INTEGER RC; LARGE_INTEGER RC;
@ -264,3 +225,4 @@ LARGE_INTEGER RtlLargeIntegerSubtract(LARGE_INTEGER Minuend,
return RC; return RC;
} }
/* EOF */

View file

@ -1,4 +1,5 @@
/* /* $Id: namespc.c,v 1.2 1999/09/29 23:10:25 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/lib/ntdll/namespc.c * FILE: ntoskrnl/lib/ntdll/namespc.c
@ -10,7 +11,6 @@
/* INCLUDES ***************************************************************/ /* INCLUDES ***************************************************************/
#include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
/* FUNCTIONS **************************************************************/ /* FUNCTIONS **************************************************************/
@ -43,3 +43,5 @@ VOID InitializeObjectAttributes(POBJECT_ATTRIBUTES InitializedAttributes,
InitializedAttributes->SecurityDescriptor=SecurityDescriptor; InitializedAttributes->SecurityDescriptor=SecurityDescriptor;
InitializedAttributes->SecurityQualityOfService=NULL; InitializedAttributes->SecurityQualityOfService=NULL;
} }
/* EOF */