This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [pph] Refactor pth/pph code out of cp/parser.c
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>, Lawrence Crowl <crowl at google dot com>
- Date: Fri, 03 Dec 2010 11:32:14 +0100
- Subject: Re: [pph] Refactor pth/pph code out of cp/parser.c
- References: <20101202215549.GA17168@google.com>
Hello Diego,
Diego Novillo <dnovillo@google.com> writes:
[...]
> +typedef struct GTY(()) pth_image
> +{
> + /* Full path name. */
> + const char * GTY((skip)) fname;
> +
> + /* MD5 sum for the contents of the original path name. */
> + unsigned char digest[DIGEST_LEN];
> +
> + /* Vector of token hunks corresponding to this file, and this file
> + only. If this file includes other files, their tokens will not be
> + stored here. Each entry in this vector is a hunk of tokens
> + delimited by file change events. For instance, if a file is
> + laid out like this:
> +
> + [ t1 t2 ... tN ]
> + #include "foo.h"
> + [ p1 p2 ... pM ]
> +
> + The field token_caches will have two entries. One for the hunk
> + [t1, tN], the second one for the hunk [p1, pM]. */
> + VEC(cp_token_hunk_ptr,gc) *token_hunks;
I guess you meant "token_hunks" in the comment, not token_caches.
--
Dodji