OSSP CVS Repository

ossp - Check-in [4319]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4319
Date: 2004-Jan-13 20:48:01 (local)
2004-Jan-13 19:48:01 (UTC)
User:rse
Branch:
Comment: Make "md5_init" and "mac_address" symbols namespace clean by adding correct embedding support via "uuid_" prefix.
Tickets:
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.8 -> 1.9     4 inserted, 0 deleted
ossp-pkg/uuid/uuid_mac.h      1.1 -> 1.2     14 inserted, 0 deleted
ossp-pkg/uuid/uuid_md5.h      1.2 -> 1.3     1 inserted, 0 deleted

ossp-pkg/uuid/ChangeLog 1.8 -> 1.9

--- ChangeLog    2004/01/13 19:43:14     1.8
+++ ChangeLog    2004/01/13 19:48:01     1.9
@@ -13,6 +13,10 @@
 
   Changes between 0.9.0 and 0.9.1 (11-Jan-2004 to xx-Jan-2004)
 
+   o Make "md5_init" and "mac_address" symbols namespace clean
+     by adding correct embedding support via "uuid_" prefix.
+     [Ralf S. Engelschall]
+
    o Implement uuid_dump() and corresponding uuid CLI "-d"
      option for dumping a given UUID into clear text. For convinience
      reasons add uuid_bm.h (bit mask API) and uuid_str (string


ossp-pkg/uuid/uuid_mac.h 1.1 -> 1.2

--- uuid_mac.h   2004/01/10 17:01:22     1.1
+++ uuid_mac.h   2004/01/13 19:48:01     1.2
@@ -32,6 +32,20 @@
 
 #include <string.h> /* size_t */
 
+#define MAC_PREFIX uuid_
+
+/* embedding support */
+#ifdef MAC_PREFIX
+#if defined(__STDC__) || defined(__cplusplus)
+#define __MAC_CONCAT(x,y) x ## y
+#define MAC_CONCAT(x,y) __MAC_CONCAT(x,y)
+#else
+#define __MAC_CONCAT(x) x
+#define MAC_CONCAT(x,y) __MAC_CONCAT(x)y
+#endif
+#define mac_address MAC_CONCAT(MAC_PREFIX,mac_create)
+#endif
+
 #define MAC_LEN 6
 
 extern int mac_address(unsigned char *data_ptr, size_t data_len);


ossp-pkg/uuid/uuid_md5.h 1.2 -> 1.3

--- uuid_md5.h   2004/01/10 12:16:03     1.2
+++ uuid_md5.h   2004/01/13 19:48:01     1.3
@@ -46,6 +46,7 @@
 #define md5_st      MD5_CONCAT(MD5_PREFIX,md5_st)
 #define md5_t       MD5_CONCAT(MD5_PREFIX,md5_t)
 #define md5_create  MD5_CONCAT(MD5_PREFIX,md5_create)
+#define md5_init    MD5_CONCAT(MD5_PREFIX,md5_init)
 #define md5_update  MD5_CONCAT(MD5_PREFIX,md5_update)
 #define md5_store   MD5_CONCAT(MD5_PREFIX,md5_store)
 #define md5_format  MD5_CONCAT(MD5_PREFIX,md5_format)

CVSTrac 2.0.1