From 99b2347cd8d485b6b3da1ab6b9b04cf2f3957bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Manuel=20de=20Morais=20Santos=20Costa?= Date: Wed, 11 Nov 2009 10:54:38 +0000 Subject: [PATCH] SWI supports xor operator. --- C/init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/C/init.c b/C/init.c index a35211603..9211c1e69 100644 --- a/C/init.c +++ b/C/init.c @@ -400,9 +400,7 @@ static Opdef Ops[] = { {"\\/", yfx, 500}, {"><", yfx, 500}, {"#", yfx, 500}, - {"+", fx, 200}, - {"-", fy, 200}, - {"\\", fy, 200}, + {"xor", yfx, 400}, {"rdiv", yfx, 400}, {"*", yfx, 400}, {"/", yfx, 400}, @@ -411,6 +409,9 @@ static Opdef Ops[] = { {">>", yfx, 400}, {"mod", yfx, 400}, {"rem", yfx, 400}, + {"+", fx, 200}, + {"-", fy, 200}, + {"\\", fy, 200}, {"//", yfx, 400}, {"**", xfx, 200}, {"^", xfy, 200}