OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_errno.c versions 1.23 and 1.24
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_errno.c 1.23 -> 1.24

--- pth_errno.c  2002/01/27 11:03:40     1.23
+++ pth_errno.c  2002/10/24 15:21:13     1.24
@@ -30,7 +30,7 @@
 #if cpp
 
 /* enclose errno in a block */
-#define errno_shield \
+#define pth_shield \
         for ( pth_errno_storage = errno, \
               pth_errno_flag = TRUE; \
               pth_errno_flag; \
@@ -39,14 +39,14 @@
 
 /* return plus setting an errno value */
 #if defined(PTH_DEBUG)
-#define return_errno(return_val,errno_val) \
-        do { errno = (errno_val); \
-             pth_debug4("return 0x%lx with errno %d(\"%s\")", \
-                        (unsigned long)(return_val), (errno), strerror((errno))); \
-             return (return_val); } while (0)
+#define pth_error(return_val,errno_val) \
+        (errno = (errno_val), \
+        pth_debug4("return 0x%lx with errno %d(\"%s\")", \
+                   (unsigned long)(return_val), (errno), strerror((errno))), \
+        (return_val))
 #else
-#define return_errno(return_val,errno_val) \
-        do { errno = (errno_val); return (return_val); } while (0)
+#define pth_error(return_val,errno_val) \
+        (errno = (errno_val), (return_val))
 #endif
 
 #endif /* cpp */

CVSTrac 2.0.1