mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-25 23:49:25 +00:00
enabled !while and new warning about parentheses
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@197 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
dddf3f3d10
commit
2ad075911b
@ -579,10 +579,8 @@ static void get_int_arg(struct number *result, boolean complain_about_indirect)
|
|||||||
|
|
||||||
ALU_addrmode_int(&expression, 0); // accept 0 parentheses still open (-> complain!)
|
ALU_addrmode_int(&expression, 0); // accept 0 parentheses still open (-> complain!)
|
||||||
if (expression.is_parenthesized && complain_about_indirect) {
|
if (expression.is_parenthesized && complain_about_indirect) {
|
||||||
if (config.test_new_features) {
|
// TODO - raise error and be done with it?
|
||||||
// TODO - raise error and be done with it?
|
Throw_first_pass_warning("There are unneeded parentheses, you know indirect addressing is impossible here, right?"); // FIXME - rephrase? add to docs!
|
||||||
Throw_first_pass_warning("There are unneeded parentheses, you know indirect addressing is impossible here, right?"); // FIXME - rephrase!
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*result = expression.result.u.number;
|
*result = expression.result.u.number;
|
||||||
}
|
}
|
||||||
|
@ -1110,10 +1110,6 @@ static enum eos po_while(void) // now GotByte = illegal char
|
|||||||
{
|
{
|
||||||
struct do_while loop;
|
struct do_while loop;
|
||||||
|
|
||||||
if (!config.test_new_features) {
|
|
||||||
Throw_error(exception_unknown_pseudo_opcode);
|
|
||||||
return SKIP_REMAINDER;
|
|
||||||
}
|
|
||||||
// read condition to buffer
|
// read condition to buffer
|
||||||
SKIPSPACE();
|
SKIPSPACE();
|
||||||
flow_store_while_condition(&loop.head_cond); // must be freed!
|
flow_store_while_condition(&loop.head_cond); // must be freed!
|
||||||
|
Loading…
Reference in New Issue
Block a user