diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
commit | 75068e7d753cf6cbe45a4bf294000dca9bd41d8b (patch) | |
tree | c6274cc10caab08349b5585206034f41ca4a575f /src/libutil/aterm.hh | |
parent | aab88127321344d5818d823bff515d127108d058 (diff) |
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
Diffstat (limited to 'src/libutil/aterm.hh')
-rw-r--r-- | src/libutil/aterm.hh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/libutil/aterm.hh b/src/libutil/aterm.hh index 22364ba0118f..431c67d130ec 100644 --- a/src/libutil/aterm.hh +++ b/src/libutil/aterm.hh @@ -5,15 +5,15 @@ extern "C" { #include <aterm2.h> } -#include "util.hh" +#include "types.hh" + + +namespace nix { /* Print an ATerm. */ string atPrint(ATerm t); -/* Write an ATerm to an output stream. */ -ostream & operator << (ostream & stream, ATerm e); - class ATermIterator { ATermList t; @@ -45,5 +45,12 @@ Error badTerm(const format & f, ATerm t); ATerm toATerm(const char * s); ATerm toATerm(const string & s); + +} + + +/* Write an ATerm to an output stream. */ +std::ostream & operator << (std::ostream & stream, ATerm e); + #endif /* !__ATERM_H */ |