X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.h;h=9724a7b90d97c386e1de013a97e08d654e05d280;hp=75fb83e9320fc159d432819c408b3abf339270c7;hb=bedfee1fae30e47e13013d197b69e15534767b05;hpb=c41ef65cc92193e9b685cc123ca9d4de9d142756 diff --git a/lexer.h b/lexer.h index 75fb83e..9724a7b 100644 --- a/lexer.h +++ b/lexer.h @@ -76,6 +76,7 @@ enum { TOKEN_VA_ARGS, /* for the ftepp only */ TOKEN_VA_ARGS_ARRAY, /* for the ftepp only */ + TOKEN_VA_COUNT, /* to get the count of vaargs */ TOKEN_STRINGCONST, /* not the typename but an actual "string" */ TOKEN_CHARCONST, @@ -191,6 +192,7 @@ static const oper_info c_operators[] = { { "<", 2, opid1('<'), ASSOC_LEFT, 10, 0 }, { ">", 2, opid1('>'), ASSOC_LEFT, 10, 0 }, + { "<=>", 2, opid3('<','=','>'), ASSOC_LEFT, 10, 0 }, { "<=", 2, opid2('<','='), ASSOC_LEFT, 10, 0 }, { ">=", 2, opid2('>','='), ASSOC_LEFT, 10, 0 },