* Use a proper namespace.

* Optimise header file usage a bit.
* Compile the parser as C++.
This commit is contained in:
Eelco Dolstra 2006-09-04 21:06:23 +00:00
parent aab8812732
commit 75068e7d75
61 changed files with 650 additions and 268 deletions

View file

@ -3,7 +3,10 @@
#include "xml-writer.hh"
XMLWriter::XMLWriter(bool indent, ostream & output)
namespace nix {
XMLWriter::XMLWriter(bool indent, std::ostream & output)
: output(output), indent(indent)
{
output << "<?xml version='1.0' encoding='utf-8'?>\n";
@ -122,3 +125,6 @@ int main(int argc, char * * argv)
return 0;
}
#endif
}