[ros-diffs] [sginsberg] 38074: - Get rid off STATIC, DECL_IMPORT and DECL_EXPORT - Fix FIELD_OFFSET

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Sun Dec 14 11:02:47 CET 2008


Author: sginsberg
Date: Sun Dec 14 04:02:46 2008
New Revision: 38074

URL: http://svn.reactos.org/svn/reactos?rev=38074&view=rev
Log:
- Get rid off STATIC, DECL_IMPORT and DECL_EXPORT
- Fix FIELD_OFFSET

Modified:
    trunk/reactos/include/ddk/ntdef.h
    trunk/reactos/include/ddk/winddi.h
    trunk/reactos/include/ddk/winddk.h

Modified: trunk/reactos/include/ddk/ntdef.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntdef.h?rev=38074&r1=38073&r2=38074&view=diff
==============================================================================
--- trunk/reactos/include/ddk/ntdef.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntdef.h [iso-8859-1] Sun Dec 14 04:02:46 2008
@@ -58,14 +58,6 @@
 //
 #ifndef CONST
 #define CONST const
-#endif
-
-
-//
-// FIXME: Non standard, should be deprecated
-//
-#ifndef STATIC
-#define STATIC static
 #endif
 
 //
@@ -164,7 +156,7 @@
 //
 #ifndef FIELD_OFFSET
 #define FIELD_OFFSET(Type, Field) \
-  ((LONG_PTR) (&(((Type *) 0)->Field)))
+  ((LONG)(LONG_PTR) (&(((Type *) 0)->Field)))
 #endif
 
 //
@@ -193,14 +185,8 @@
 //
 // Import and Export Specifiers
 //
-#ifndef DECL_IMPORT
-#define DECL_IMPORT DECLSPEC_IMPORT //FIXME: DECL_IMPORT -> DECLSPEC_IMPORT
-#endif
-#ifndef DECL_EXPORT
-#define DECL_EXPORT DECLSPEC_EXPORT //FIXME: DECL_EXPORT -> DECLSPEC_EXPORT
-#endif
-
-// Done the same way as in windef.h (for now *cough*)
+
+// Done the same way as in windef.h for now
 #define DECLSPEC_IMPORT __declspec(dllimport)
 #define DECLSPEC_EXPORT __declspec(dllexport)
 #define DECLSPEC_NORETURN __declspec(noreturn)

Modified: trunk/reactos/include/ddk/winddi.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddi.h?rev=38074&r1=38073&r2=38074&view=diff
==============================================================================
--- trunk/reactos/include/ddk/winddi.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddi.h [iso-8859-1] Sun Dec 14 04:02:46 2008
@@ -34,8 +34,8 @@
 extern "C" {
 #endif
 
-#ifndef DECL_IMPORT
-#define DECL_IMPORT __attribute__((dllimport))
+#ifndef DECLSPEC_IMPORT
+#define DECLSPEC_IMPORT __attribute__((dllimport))
 #endif
 
 #ifndef WIN32KAPI

Modified: trunk/reactos/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=38074&r1=38073&r2=38074&view=diff
==============================================================================
--- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Sun Dec 14 04:02:46 2008
@@ -3122,10 +3122,10 @@
 } HAL_DISPATCH, *PHAL_DISPATCH;
 
 #if defined(_NTDRIVER_) || defined(_NTDDK_) || defined(_NTHAL_)
-extern DECL_IMPORT PHAL_DISPATCH HalDispatchTable;
+extern DECLSPEC_IMPORT PHAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH ((PHAL_DISPATCH)&HalDispatchTable)
 #else
-extern DECL_EXPORT HAL_DISPATCH HalDispatchTable;
+extern DECLSPEC_EXPORT HAL_DISPATCH HalDispatchTable;
 #define HALDISPATCH (&HalDispatchTable)
 #endif
 



More information about the Ros-diffs mailing list