This is the mail archive of the gcc@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: mixing VEC-tors of string & GTY?


On Jan 4, 2007, at 2:26 AM, Basile STARYNKEVITCH wrote:
I cannot figure out how to have a vector of strings in a GTY-ed file

F_VEC_ALLOC_P(locstr,heap);

Any clues?

Do a vec of:


struct bar {
	char *field;
}

and skip the field, and add the GTY markers. Should work.


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