* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
This commit is contained in:
		
							parent
							
								
									aab8812732
								
							
						
					
					
						commit
						75068e7d75
					
				
					 61 changed files with 650 additions and 268 deletions
				
			
		|  | @ -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 | ||||
| 
 | ||||
|   | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue