mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-29 19:50:12 +00:00
"==" warning is now only given in first pass
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@30 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
f9e55a0d13
commit
af1521f258
@ -8,6 +8,8 @@
|
|||||||
// 31 Jul 2009 Changed ASR again, just to be on the safe side.
|
// 31 Jul 2009 Changed ASR again, just to be on the safe side.
|
||||||
// 14 Jan 2014 Changed associativity of "power-of" operator,
|
// 14 Jan 2014 Changed associativity of "power-of" operator,
|
||||||
// so a^b^c now means a^(b^c).
|
// so a^b^c now means a^(b^c).
|
||||||
|
// 7 May 2014 C-style "==" operators are now recognized (but
|
||||||
|
// give a warning).
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h> // only for fp support
|
#include <math.h> // only for fp support
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
@ -765,7 +767,7 @@ static void expect_dyadic_operator(void)
|
|||||||
operator = &ops_equals;
|
operator = &ops_equals;
|
||||||
// if it's "==", accept but warn
|
// if it's "==", accept but warn
|
||||||
if (GetByte() == '=') {
|
if (GetByte() == '=') {
|
||||||
Throw_warning("C-style \"==\" comparison detected");
|
Throw_first_pass_warning("C-style \"==\" comparison detected");
|
||||||
goto get_byte_and_push_dyadic;
|
goto get_byte_and_push_dyadic;
|
||||||
}
|
}
|
||||||
goto push_dyadic;
|
goto push_dyadic;
|
||||||
|
Loading…
Reference in New Issue
Block a user