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: minor varray cleanup


On Wed, Feb 12, 2003 at 02:18:35PM -0800, Mike Stump wrote:
> 	* varray.c (element_size): Remove.
> 	(uses_ggc): Remove.
> 	(element): Add.
> 	(varray_init): Use new interface.
> 	(varray_grow): Use new interface.
> 	(varray_clear): Use new interface.

Ok, but, 

> ! static const struct {
> !   size_t size;
> !   int uses_ggc;
> ! } element[NUM_VARRAY_DATA] = {

I'm going to go out on a limb and claim we won't have any
data here that's > 255 bytes.  So you can use

	unsigned char size;
	bool uses_ggc;


r~


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