commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r897910 - in /commons/sandbox/runtime/trunk/src/main/native/include/arch/windows: acr_arch_private.h acr_arch_registry.h
Date Mon, 11 Jan 2010 15:33:33 GMT
Author: mturk
Date: Mon Jan 11 15:33:32 2010
New Revision: 897910

URL: http://svn.apache.org/viewvc?rev=897910&view=rev
Log:
Move the macro to the arch private.h

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
    commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h?rev=897910&r1=897909&r2=897910&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
(original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
Mon Jan 11 15:33:32 2010
@@ -148,6 +148,13 @@
         (H) = NULL;                                                 \
     } else (void)0
 
+#define SAFE_CLOSE_KEY(K)                                           \
+    if ((K) != NULL && (K) != INVALID_HANDLE_VALUE) {               \
+        RegCloseKey((K));                                           \
+        (K) = NULL;                                                 \
+    } else (void)0
+
+
 
 void ACR_THREAD_LOCK_EX(void);
 void ACR_THREAD_LOCK_UN(void);

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h?rev=897910&r1=897909&r2=897910&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h
(original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h
Mon Jan 11 15:33:32 2010
@@ -60,12 +60,6 @@
 #define ACR_REG_QWORD               5
 #define ACR_REG_SZ                  6
 
-#define SAFE_CLOSE_KEY(k) \
-    if ((k) != NULL && (k) != INVALID_HANDLE_VALUE) {   \
-        RegCloseKey((k));                               \
-        (k) = NULL;                                     \
-    } else (void)0
-
 /**
  * Internal registry helper type
  */



Mime
View raw message