X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=lexer.h;h=0de0c8fd90d04dbf74b5acbfcd2e81196146879e;hb=a9ab865add301e49390d1ebeabe350a6c9c4205c;hp=cde0863e80877952a7dd8f518bed167ed0355780;hpb=b0a07695344c805381fdca64aac229ee98725130;p=xonotic%2Fgmqcc.git diff --git a/lexer.h b/lexer.h index cde0863..0de0c8f 100644 --- a/lexer.h +++ b/lexer.h @@ -22,7 +22,6 @@ */ #ifndef GMQCC_LEXER_HDR #define GMQCC_LEXER_HDR - typedef struct token_s token; struct token_s { @@ -124,11 +123,11 @@ typedef struct lex_file_s { 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;