[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] obstack.h fix: obstack_base

From: Jim Meyering
Subject: [Bug-gnulib] obstack.h fix: obstack_base
Date: Thu, 24 Jun 2004 09:54:35 +0200

FYI, I've just checked in the change below.
Before, obstack_base simply inherited the type of
the object_base member, `char *'.
So, be warned that if your code relied on the old,
incompatible-with-documented, behavior, it may no longer compile.

2004-06-24  Jim Meyering  <address@hidden>

        * obstack.h (obstack_base): Cast to (void *), per documentation.

Index: obstack.h
RCS file: /cvsroot/gnulib/gnulib/lib/obstack.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -u -r1.28 -r1.29
--- obstack.h   19 May 2004 20:04:17 -0000      1.28
+++ obstack.h   24 Jun 2004 06:04:10 -0000      1.29
@@ -206,7 +206,7 @@ extern int obstack_exit_failure;
    Note that this might not be the final address of the object
    because a new chunk might be needed to hold the final size.  */
-#define obstack_base(h) ((h)->object_base)
+#define obstack_base(h) ((void *) (h)->object_base)
 /* Size for allocating ordinary chunks.  */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]