]> git.xonotic.org Git - xonotic/gmqcc.git/commit
Make unary - operator act as an ast_unary node. This allows for consistency (no sense...
authorDale Weiler <killfieldengine@gmail.com>
Mon, 30 Sep 2013 02:01:46 +0000 (22:01 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 30 Sep 2013 02:01:46 +0000 (22:01 -0400)
commitb10de1b240911487e2f3731342725c842d711496
treec3db3385c03eccc190fc5eb1e15ba785d305b0b0
parent3c931ecbf17c852012efc5050ed44cb8e8f2c1da
Make unary - operator act as an ast_unary node. This allows for consistency (no sense in making unary use binstore nodes, it doesn't make much sense). It also allows for the peephole optimization on unary chains that cancel each other to take place; i.e code like "-(-a)" simplifies to "a", thus eliminating instructions.
ast.c
gmqcc.h
ir.c
parser.c