mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Use "#pragma once" to prevent repeated header file inclusion
This commit is contained in:
parent
58337e0e61
commit
b7fd2c2822
32 changed files with 31 additions and 166 deletions
|
@ -1,5 +1,4 @@
|
|||
#ifndef __ARCHIVE_H
|
||||
#define __ARCHIVE_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
#include "serialise.hh"
|
||||
|
@ -74,6 +73,3 @@ void restorePath(const Path & path, Source & source);
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__ARCHIVE_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __HASH_H
|
||||
#define __HASH_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
#include "serialise.hh"
|
||||
|
@ -109,6 +108,3 @@ public:
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__HASH_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __IMMUTABLE_H
|
||||
#define __IMMUTABLE_H
|
||||
#pragma once
|
||||
|
||||
#include <types.hh>
|
||||
|
||||
|
@ -15,5 +14,3 @@ void makeImmutable(const Path & path);
|
|||
void makeMutable(const Path & path);
|
||||
|
||||
}
|
||||
|
||||
#endif /* !__IMMUTABLE_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __SERIALISE_H
|
||||
#define __SERIALISE_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
|
@ -130,6 +129,3 @@ MakeError(SerialisationError, Error)
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__SERIALISE_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __TYPES_H
|
||||
#define __TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
@ -74,6 +73,3 @@ typedef enum {
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__TYPES_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __UTIL_H
|
||||
#define __UTIL_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
|
@ -333,6 +332,3 @@ void ignoreException();
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__UTIL_H */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __XML_WRITER_H
|
||||
#define __XML_WRITER_H
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
@ -70,6 +69,3 @@ public:
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__XML_WRITER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue