From: Father Chrysostomos Date: Tue, 3 Jul 2012 21:00:00 +0000 (-0700) Subject: parser.h: Add comments explaining *bufptr X-Git-Tag: upstream/5.20.0~6157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0dffe9bf14c9669153ccc3d5c9341d4864848dd;p=platform%2Fupstream%2Fperl.git parser.h: Add comments explaining *bufptr --- diff --git a/parser.h b/parser.h index de69a2d..1d5a7a8 100644 --- a/parser.h +++ b/parser.h @@ -64,9 +64,11 @@ typedef struct yy_parser { I32 lex_allbrackets;/* (), [], {}, ?: bracket count */ SUBLEXINFO sublex_info; SV *linestr; /* current chunk of src text */ - char *bufptr; - char *oldbufptr; - char *oldoldbufptr; + char *bufptr; /* carries the cursor (current parsing + position) from one invocation of yylex + to the next */ + char *oldbufptr; /* in yylex, beginning of current token */ + char *oldoldbufptr; /* in yylex, beginning of previous token */ char *bufend; char *linestart; /* beginning of most recently read line */ char *last_uni; /* position of last named-unary op */