[XDK][DDK]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 14 Sep 2014 15:49:35 +0000 (15:49 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 14 Sep 2014 15:49:35 +0000 (15:49 +0000)
* Handle the rest of cases about the order of pragma and symbol declaration.

svn path=/trunk/; revision=64151

reactos/include/ddk/ntddk.h
reactos/include/ddk/ntifs.h
reactos/include/ddk/wdm.h
reactos/include/xdk/fsrtlfuncs.h
reactos/include/xdk/haltypes.h
reactos/include/xdk/kdfuncs.h
reactos/include/xdk/ketypes.h
reactos/include/xdk/mmtypes.h
reactos/include/xdk/ntifs.template.h

index 8cf5a48..3fc6620 100644 (file)
@@ -1670,8 +1670,8 @@ typedef struct {
 extern HAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH (&HalDispatchTable)
 #else
-extern PHAL_DISPATCH HalDispatchTable;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(HalDispatchTable)
+extern PHAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH HalDispatchTable
 #endif
 
index 53b2d13..59759da 100644 (file)
@@ -8396,8 +8396,8 @@ FsRtlRemovePerFileObjectContext(
 extern const UCHAR * const FsRtlLegalAnsiCharacterArray;
 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
 #else
-extern const UCHAR * const *FsRtlLegalAnsiCharacterArray;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(FsRtlLegalAnsiCharacterArray)
+extern const UCHAR * const *FsRtlLegalAnsiCharacterArray;
 #define LEGAL_ANSI_CHARACTER_ARRAY (*FsRtlLegalAnsiCharacterArray)
 #endif
 
@@ -10993,8 +10993,8 @@ HalGetDmaAlignmentRequirement(
 extern PUSHORT NlsOemLeadByteInfo;
 #define NLS_OEM_LEAD_BYTE_INFO NlsOemLeadByteInfo
 #else
-extern PUSHORT *NlsOemLeadByteInfo;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(NlsOemLeadByteInfo)
+extern PUSHORT *NlsOemLeadByteInfo;
 #define NLS_OEM_LEAD_BYTE_INFO (*NlsOemLeadByteInfo)
 #endif
 
index 8b64841..fec96b1 100644 (file)
@@ -1661,8 +1661,8 @@ extern NTSYSAPI volatile CCHAR KeNumberProcessors;
 #elif (NTDDI_VERSION >= NTDDI_WINXP)
 extern NTSYSAPI CCHAR KeNumberProcessors;
 #else
-extern PCCHAR KeNumberProcessors;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(KeNumberProcessors)
+extern PCCHAR KeNumberProcessors;
 #endif
 
 
@@ -1815,8 +1815,8 @@ typedef enum _MM_SYSTEM_SIZE {
 } MM_SYSTEMSIZE;
 
 #ifndef _NTSYSTEM_
-extern PBOOLEAN Mm64BitPhysicalAddress;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(Mm64BitPhysicalAddress)
+extern PBOOLEAN Mm64BitPhysicalAddress;
 #endif
 extern NTKERNELAPI PVOID MmBadPointer;
 
index 24465b8..03fcb46 100644 (file)
@@ -1584,8 +1584,8 @@ FsRtlRemovePerFileObjectContext(
 extern const UCHAR * const FsRtlLegalAnsiCharacterArray;
 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
 #else
-extern const UCHAR * const *FsRtlLegalAnsiCharacterArray;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(FsRtlLegalAnsiCharacterArray)
+extern const UCHAR * const *FsRtlLegalAnsiCharacterArray;
 #define LEGAL_ANSI_CHARACTER_ARRAY (*FsRtlLegalAnsiCharacterArray)
 #endif
 
index db30806..4ba2b36 100644 (file)
@@ -273,8 +273,8 @@ typedef struct {
 extern HAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH (&HalDispatchTable)
 #else
-extern PHAL_DISPATCH HalDispatchTable;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(HalDispatchTable)
+extern PHAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH HalDispatchTable
 #endif
 
index b5e908b..bad85b0 100644 (file)
@@ -125,11 +125,11 @@ extern BOOLEAN KdDebuggerEnabled;
 extern BOOLEAN KdDebuggerNotPresent;
 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
 #else
-extern BOOLEAN *KdDebuggerEnabled;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(KdDebuggerEnabled)
+extern BOOLEAN *KdDebuggerEnabled;
 #define KD_DEBUGGER_ENABLED (*KdDebuggerEnabled)
-extern BOOLEAN *KdDebuggerNotPresent;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(KdDebuggerNotPresent)
+extern BOOLEAN *KdDebuggerNotPresent;
 #define KD_DEBUGGER_NOT_PRESENT (*KdDebuggerNotPresent)
 #endif
 
index 7b14d0a..54675d1 100644 (file)
@@ -986,8 +986,8 @@ extern NTSYSAPI volatile CCHAR KeNumberProcessors;
 #elif (NTDDI_VERSION >= NTDDI_WINXP)
 extern NTSYSAPI CCHAR KeNumberProcessors;
 #else
-extern PCCHAR KeNumberProcessors;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(KeNumberProcessors)
+extern PCCHAR KeNumberProcessors;
 #endif
 
 $endif (_WDMDDK_)
index ae665cc..cc5c69b 100644 (file)
@@ -148,8 +148,8 @@ typedef enum _MM_SYSTEM_SIZE {
 } MM_SYSTEMSIZE;
 
 #ifndef _NTSYSTEM_
-extern PBOOLEAN Mm64BitPhysicalAddress;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(Mm64BitPhysicalAddress)
+extern PBOOLEAN Mm64BitPhysicalAddress;
 #endif
 extern NTKERNELAPI PVOID MmBadPointer;
 
index 6895789..af6712b 100644 (file)
@@ -1128,8 +1128,8 @@ HalGetDmaAlignmentRequirement(
 extern PUSHORT NlsOemLeadByteInfo;
 #define NLS_OEM_LEAD_BYTE_INFO NlsOemLeadByteInfo
 #else
-extern PUSHORT *NlsOemLeadByteInfo;
 __CREATE_NTOS_DATA_IMPORT_ALIAS(NlsOemLeadByteInfo)
+extern PUSHORT *NlsOemLeadByteInfo;
 #define NLS_OEM_LEAD_BYTE_INFO (*NlsOemLeadByteInfo)
 #endif