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: [pph] Refactor pth/pph code out of cp/parser.c


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


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