diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-03-31 12:38:31 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-03-31 12:38:31 +0000 |
commit | 09381cccffe675ccbc8d183f043788f99dc018cd (patch) | |
tree | 0c38ffd9438be5422dc871c75abd7b5b19ee11da /nix.spec.in | |
parent | 471419d1fac21412dea9a47eff200d44cd75d825 (diff) |
Make source location info in the XML output optional.
* src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location'
parameter. Provide location XML attributes when it's true. Update
callers.
(nix::printTermAsXML): Likewise.
* src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype;
have `location' default to `false'.
* src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add
`location' parameter; update callers.
(run): Add support for `--no-location'.
* src/nix-instantiate/help.txt: Update accordingly.
* tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the
XML tests.
* tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New
files.
Diffstat (limited to 'nix.spec.in')
0 files changed, 0 insertions, 0 deletions