scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 39039ca1ed55c32fe7cd49eea16baebe52a9a38f
parent def738373743cb9c76e61ce6945bb4d990cc19b1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 16 Nov 2021 21:25:25 +0100

cc1: Add %= to the list of operators in the lexer

This operator was lost in the code of the lexer.

Diffstat:
Msrc/cmd/cc/cc1/lex.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc1/lex.c b/src/cmd/cc/cc1/lex.c @@ -689,6 +689,9 @@ operator(void) case '/': t = follow('=', DIV_EQ, '/'); break; + case '%': + t = follow('=', MOD_EQ, '%'); + break; case '!': t = follow('=', NE, '!'); break;