*/
#ifndef GMQCC_LEXER_HDR
#define GMQCC_LEXER_HDR
-
typedef struct token_s token;
struct token_s {
char *value;
union {
- vector v;
+ vec3_t v;
int i;
double f;
int t; /* type */
struct token_s *prev;
#endif
- lex_ctx ctx;
+ lex_ctx_t ctx;
};
#if 0
token tok; /* not a pointer anymore */
struct {
- bool noops;
- bool nodigraphs; /* used when lexing string constants */
- bool preprocessing; /* whitespace and EOLs become actual tokens */
- bool mergelines; /* backslash at the end of a line escapes the newline */
- } flags;
+ unsigned noops:1;
+ unsigned nodigraphs:1; /* used when lexing string constants */
+ unsigned preprocessing:1; /* whitespace and EOLs become actual tokens */
+ unsigned mergelines:1; /* backslash at the end of a line escapes the newline */
+ } flags; /* sizeof == 1 */
int framevalue;
frame_macro *frames;