diff options
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -1,3 +1,39 @@ +2008-03-09 Sergey Poznyakoff <gray@gnu.org.ua> + + Name clashes between constants and variables went unnoticed by the + compiler. Bug reported by Thomas Lynch. + Fix this and rename exception codes to minimize chances of such + clashes. + + * src/symtab.c (lookup_or_install): Allow to search using state + masks. + (variable_or_constant_lookup): New function. + (constant_lookup): Return const struct constant *. + (constant_lookup_value): New function. + * src/lex.l (get_const): Remove. + (variable_or_const): New function. + * src/gram.y: Display warnings on a clash of constant and variable + names. + (VARIABLE): Change union type to var. Modify `variable' production + accordingly. + * src/mailfromd.h (_SYM_COUNT,SYM_MASK,SYM_BITS): New defines. + (constant_lookup): Return const struct constant *. + (constant_lookup_value): New function. + (variable_or_constant_lookup): New function. + * src/status.mfi: Prefix exception codes with `e_' to avoid name + clashes. + Provide backward-compatible constants. + * mflib/match_dnsbl.mf (match_dnsbl): Rename range to iprange to + avoid name clashes with the exception code. + Remove buggy conditions. Provide a correctly working replacement + for them if the m3 symbol `COMPAT_4_3' is defined. + * mflib/match_rhsbl.mf (match_rhsbl): Rename range to iprange to + avoid name clashes with the exception code. + Remove buggy conditions. Provide a correctly working replacement + for them if the m3 symbol `COMPAT_4_3' is defined. + * mflib/match_cidr.mf, mflib/safedb.mf4, tests/etc/catch.rc, + tests/etc/catch01.rc: Use new exception codes. + 2008-03-01 Sergey Poznyakoff <gray@gnu.org.ua> * src/prog.c, src/prog.h (advance_pc): Fix type of the 2nd |