This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: type of obstack_base: char* or void*?


Ulrich Drepper <drepper@redhat.com> wrote:
>> I think the documentation is right.
>
> I agree and applied the patch.

Thank you.
When I `fixed' obstack.h in gnulib, Paul Eggert
noticed that the parens were wrong.
Here's an additional patch:

Index: malloc/obstack.h
===================================================================
RCS file: /cvs/glibc/libc/malloc/obstack.h,v
retrieving revision 1.19
diff -u -p -r1.19 obstack.h
--- malloc/obstack.h	29 Jun 2004 06:27:54 -0000	1.19
+++ malloc/obstack.h	29 Jun 2004 06:38:40 -0000
@@ -194,7 +194,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) (void *)((h)->object_base)
+#define obstack_base(h) ((void *) (h)->object_base)
 
 /* Size for allocating ordinary chunks.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]