* 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,7 +1,10 @@ | |||
| #ifndef __PATHLOCKS_H | ||||
| #define __PATHLOCKS_H | ||||
| 
 | ||||
| #include "util.hh" | ||||
| #include "types.hh" | ||||
| 
 | ||||
| 
 | ||||
| namespace nix { | ||||
| 
 | ||||
| 
 | ||||
| /* Open (possibly create) a lock file and return the file descriptor.
 | ||||
|  | @ -22,7 +25,7 @@ bool lockFile(int fd, LockType lockType, bool wait); | |||
| class PathLocks  | ||||
| { | ||||
| private: | ||||
|     typedef pair<int, Path> FDPair; | ||||
|     typedef std::pair<int, Path> FDPair; | ||||
|     list<FDPair> fds; | ||||
|     bool deletePaths; | ||||
| 
 | ||||
|  | @ -37,4 +40,7 @@ public: | |||
| }; | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| #endif /* !__PATHLOCKS_H */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue