OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/ChangeLog versions 1.132 and 1.133
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/ChangeLog 1.132 -> 1.133

--- ChangeLog    2006/08/02 13:11:09     1.132
+++ ChangeLog    2006/10/06 08:32:40     1.133
@@ -11,7 +11,28 @@
   This is a list of all changes to OSSP uuid.
   For a more brief summary please have a look at the NEWS file.
 
-  Changes between 1.5.1 and 1.5.2 (31-Jul-2006 to xx-Aug-2006)
+  Changes between 1.5.1 and 1.6.0 (31-Jul-2006 to 05-Oct-2006)
+
+   o Change type of "data_ptr" argument in uuid_export() API signature
+     from "void **" to "void *" as there is unfortunately no
+     "generic pointer to pointer type" in ISO C (see also
+     http://c-faq.com/ptrs/genericpp.html) and "void **" is just a
+     "pointer to a 'void *'".
+     
+     The "void **" especially had the nasty side-effect that it breaks
+     strict pointer aliasing rules of ISO C and hence would require
+     fiddling with temporary variables on all uuid_export() calls if
+     one would be 100% correct and avoid aliasing related compiler
+     warnings. Instead, as uuid_export() internally has to cast the
+     "data_ptr" to the particular expected type anyway, it is better
+     to have "data_ptr" just be a really generic "void *" in the API
+     signature.
+     
+     Keep in mind that although this is an API change, it doesn't cause
+     any incompatibilities as the function still expects the same
+     "pointer to a pointer of a particular type". This expected pointer
+     is just now passed the more correct although less intuitive way.
+     [Hrvoje Niksic <hniksic@xemacs.org>, Ralf S. Engelschall]
 
    o Optional DMALLOC based memory debugging support.
      [Ralf S. Engelschall]

CVSTrac 2.0.1