summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_scanner.l
diff options
context:
space:
mode:
authorjaortega <jaortega>2000-11-18 00:09:55 +0000
committerjaortega <jaortega>2000-11-18 00:09:55 +0000
commita67987db371a5f8a4ff96485bd610cedb6e94a21 (patch)
tree19b6f788aad1d97a6656ea7798228fed9a3ad586 /mixlib/mix_scanner.l
parentce615c3e96515416252b66ddd81fcbcbd86d4ed5 (diff)
downloadmdk-a67987db371a5f8a4ff96485bd610cedb6e94a21.tar.gz
mdk-a67987db371a5f8a4ff96485bd610cedb6e94a21.tar.bz2
marked with a warning use of future references with a minus sign
Diffstat (limited to 'mixlib/mix_scanner.l')
-rw-r--r--mixlib/mix_scanner.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/mixlib/mix_scanner.l b/mixlib/mix_scanner.l
index c98d0b2..c6ed5d8 100644
--- a/mixlib/mix_scanner.l
+++ b/mixlib/mix_scanner.l
@@ -314,6 +314,8 @@ wexpr {expr}({fpart})?(,{expr}({fpart})?)*
if ( !mix_symbol_table_is_defined (parser->symbol_table, s) )
{
mix_parser_set_future_ref (parser, s);
+ if (neg)
+ mix_parser_log_error (parser, MIX_PERR_UNDEF_SYM, lineno, s, TRUE);
unput (neg? '1':'0');
}
else