Mercurial > ~dholland > hg > tradcpp > index.cgi
diff directive.h @ 164:f14f5352956c
Merge upstream into Joerg's changes.
author | David A. Holland |
---|---|
date | Fri, 12 Jun 2015 01:00:38 -0400 |
parents | d6e6b3940780 a2c2fe8dbea3 |
children |
line wrap: on
line diff
--- a/directive.h Fri Feb 27 13:44:39 2015 +0100 +++ b/directive.h Fri Jun 12 01:00:38 2015 -0400 @@ -29,11 +29,21 @@ #include <stddef.h> -struct place; +#include "place.h" + +/* + * Relevant places while we're processing a line: + * the place in the current line + * the beginning of the next line + */ +struct lineplace { + struct place current; + struct place nextline; +}; void directive_init(void); void directive_cleanup(void); -void directive_gotline(struct place *p, struct place *np, char *line, size_t len); +void directive_gotline(struct lineplace *lp, char *line, size_t len); void directive_goteof(struct place *p);