comparison lwcc/token.c @ 304:d85d173ba120 ccdev

Checkpoint lwcc development - preprocessor is runnable but nonfunctional The preprocessor is currently runnable but doesn't actually do anything useful. This is just a checkpoint.
author William Astle <lost@l-w.ca>
date Tue, 17 Sep 2013 19:33:41 -0600
parents 856caf91ffaa
children 54f213c8fb81
comparison
equal deleted inserted replaced
303:659e0e4ce50c 304:d85d173ba120
33 t = lw_alloc(sizeof(struct token)); 33 t = lw_alloc(sizeof(struct token));
34 t -> ttype = ttype; 34 t -> ttype = ttype;
35 if (strval) 35 if (strval)
36 t -> strval = lw_strdup(strval); 36 t -> strval = lw_strdup(strval);
37 else 37 else
38 strval = NULL; 38 t -> strval = NULL;
39 t -> lineno = row; 39 t -> lineno = row;
40 t -> column = col; 40 t -> column = col;
41 t -> fn = fn; 41 t -> fn = fn;
42 t -> next = NULL; 42 t -> next = NULL;
43 t -> prev = NULL; 43 t -> prev = NULL;