* 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
				
			
		|  | @ -1,17 +1,21 @@ | |||
| #include "pathlocks.hh" | ||||
| #include "util.hh" | ||||
| 
 | ||||
| #include <cerrno> | ||||
| 
 | ||||
| #include <sys/types.h> | ||||
| #include <sys/stat.h> | ||||
| #include <fcntl.h> | ||||
| 
 | ||||
| #include "pathlocks.hh" | ||||
| 
 | ||||
| #ifdef __CYGWIN__ | ||||
| #include <windows.h> | ||||
| #include <sys/cygwin.h> | ||||
| #endif | ||||
| 
 | ||||
| 
 | ||||
| namespace nix { | ||||
| 
 | ||||
| 
 | ||||
| int openLockFile(const Path & path, bool create) | ||||
| { | ||||
|     AutoCloseFD fd; | ||||
|  | @ -220,3 +224,6 @@ void PathLocks::setDeletion(bool deletePaths) | |||
| { | ||||
|     this->deletePaths = deletePaths; | ||||
| } | ||||
| 
 | ||||
|   | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue