This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] more enhancements to df on the mainline.
On Thu, 2006-01-19 at 08:35 +0100, Paolo Bonzini wrote:
> > You know this will require putting casts everywhere for the much beloved
> > compile-with-C++ project? I'd rather figure out why forward declaring
> > bitmap didn't work. I.e.
> >
> > #ifndef GCC_BITMAP_H
> > #define HAVE_BITMAP_TYPEDEF
> > struct bitmap_p;
> > typedef struct bitmap_p *bitmap;
> > #endif
> >
> > for the forward declaration should do the trick, no? In bitmap.h guard
> > the typedef with HAVE_BITMAP_TYPEDEF.
>
> You could put this in the coretypes.h file, and remove the typedef from
> bitmap.h.
I'll give that a try.
(I have no problem with making the argument a bitmap, i just think using
something like the above to do it is incredibly ugly)