mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +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,12 +1,9 @@
|
|||
#ifndef __NAMES_H
|
||||
#define __NAMES_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
||||
struct DrvName
|
||||
{
|
||||
string fullName;
|
||||
|
@ -19,15 +16,9 @@ struct DrvName
|
|||
bool matches(DrvName & n);
|
||||
};
|
||||
|
||||
|
||||
typedef list<DrvName> DrvNames;
|
||||
|
||||
|
||||
int compareVersions(const string & v1, const string & v2);
|
||||
DrvNames drvNamesFromArgs(const Strings & opArgs);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__NAMES_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue