This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] more enhancements to df on the mainline.



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.


Paolo


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