OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid_dce.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid_dce.c 1.2 -> 1.3

--- uuid_dce.c   2004/12/31 19:20:34     1.2
+++ uuid_dce.c   2005/03/29 19:01:41     1.3
@@ -43,6 +43,9 @@
 /* include regular API */
 #include "uuid.h"
 
+/* helper macro */
+#define LEAVE /*lint -save -e801*/ goto leave /*lint -restore*/
+
 /* create a UUID (v1 only) */
 void uuid_dce_create(uuid_dce_t *uuid_dce, int *status)
 {
@@ -149,15 +152,15 @@
 
     /* import both UUID binary representations and compare them */
     if (uuid_create(&uuid1) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_create(&uuid2) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_import(uuid1, UUID_FMT_BIN, uuid_dce1, UUID_LEN_BIN) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_import(uuid2, UUID_FMT_BIN, uuid_dce2, UUID_LEN_BIN) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_compare(uuid1, uuid2, &result) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
 
     /* indicate successful operation */
     if (status != NULL)
@@ -204,13 +207,13 @@
 
     /* import string representation and export binary representation */
     if (uuid_create(&uuid) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_import(uuid, UUID_FMT_STR, str, UUID_LEN_STR) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     vp  = uuid_dce;
     len = UUID_LEN_BIN;
     if (uuid_export(uuid, UUID_FMT_BIN, &vp, &len) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
 
     /* indicate successful operation */
     if (status != NULL)
@@ -240,13 +243,13 @@
 
     /* import binary representation and export string representation */
     if (uuid_create(&uuid) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     if (uuid_import(uuid, UUID_FMT_BIN, uuid_dce, UUID_LEN_BIN) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
     vp  = str;
     len = UUID_LEN_STR;
     if (uuid_export(uuid, UUID_FMT_STR, &vp, &len) != UUID_RC_OK)
-        goto leave;
+        LEAVE;
 
     /* indicate successful operation */
     if (status != NULL)

CVSTrac 2.0.1