1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

* Make printing an expression as XML interruptible.

This commit is contained in:
Eelco Dolstra 2007-01-13 14:48:41 +00:00
parent 11158028be
commit 792878af91
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#include "xml-writer.hh"
#include "nixexpr-ast.hh"
#include "aterm.hh"
#include "util.hh"
namespace nix {
@ -24,6 +25,8 @@ static void printTermAsXML(Expr e, XMLWriter & doc, PathSet & context)
ATermList as, es, formals;
ATerm body, pos;
checkInterrupt();
if (matchStr(e, s, context)) /* !!! show the context? */
doc.writeEmptyElement("string", singletonAttrs("value", s));