comparison directive.h @ 154:a2c2fe8dbea3

Wrap up the current and next line position when invoking directives. (in preparation for implementing #line)
author David A. Holland
date Fri, 12 Jun 2015 00:56:12 -0400
parents 76c114899f63
children f14f5352956c
comparison
equal deleted inserted replaced
153:28ac21a359d1 154:a2c2fe8dbea3
27 * POSSIBILITY OF SUCH DAMAGE. 27 * POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include <stddef.h> 30 #include <stddef.h>
31 31
32 struct place; 32 #include "place.h"
33
34 /*
35 * Relevant places while we're processing a line:
36 * the place in the current line
37 * the beginning of the next line
38 */
39 struct lineplace {
40 struct place current;
41 struct place nextline;
42 };
33 43
34 void directive_init(void); 44 void directive_init(void);
35 void directive_cleanup(void); 45 void directive_cleanup(void);
36 46
37 void directive_gotline(struct place *p, char *line, size_t len); 47 void directive_gotline(struct lineplace *lp, char *line, size_t len);
38 void directive_goteof(struct place *p); 48 void directive_goteof(struct place *p);
39 49