Factorize the location stack handling in warning analyses.
authorLudovic Courtès <ludo@gnu.org>
Fri, 8 Jan 2010 11:02:00 +0000 (12:02 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 8 Jan 2010 11:02:00 +0000 (12:02 +0100)
commit795ab688ee994181d92c2a106fc2408d86dbbbf8
treed34fe2ee62f8f3446439b8dde4d8aa0773d659dc
parentc5e05a1c70d7a3db2456677524872a590624285f
Factorize the location stack handling in warning analyses.

* module/language/tree-il/analyze.scm (analyze-tree)[traverse]: New
  argument UPDATE-LOCS.  Update users.
  [keep-locs, extend-locs, shrink-locs]: New procedures.
  (<binding-info>, <toplevel-info>): Remove `locs' field.
  (unused-variable-analysis, unbound-variable-analysis): Update
  accordingly.
module/language/tree-il/analyze.scm