This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mixing VEC-tors of string & GTY?
- From: Mike Stump <mrs at apple dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 Jan 2007 12:06:21 -0800
- Subject: Re: mixing VEC-tors of string & GTY?
- References: <20070104102648.GA25501@ours.starynkevitch.net>
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.