1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

* 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

@ -1,11 +1,10 @@
#ifndef __HASH_H
#define __HASH_H
#include <string>
#include "types.hh"
#include "util.hh"
using namespace std;
namespace nix {
typedef enum { htUnknown, htMD5, htSHA1, htSHA256 } HashType;
@ -76,5 +75,8 @@ Hash compressHash(const Hash & hash, unsigned int newSize);
/* Parse a string representing a hash type. */
HashType parseHashType(const string & s);
}
#endif /* !__HASH_H */