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:
parent
11158028be
commit
792878af91
2 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue