mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
* --max-freed: support values >= 4 GB.
This commit is contained in:
parent
d3aa183beb
commit
5af84139a8
4 changed files with 12 additions and 3 deletions
|
@ -1020,6 +1020,14 @@ bool string2Int(const string & s, int & n)
|
|||
}
|
||||
|
||||
|
||||
bool string2Int(const string & s, long long & n)
|
||||
{
|
||||
std::istringstream str(s);
|
||||
str >> n;
|
||||
return str && str.get() == EOF;
|
||||
}
|
||||
|
||||
|
||||
void ignoreException()
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -287,6 +287,7 @@ bool statusOk(int status);
|
|||
/* Parse a string into an integer. */
|
||||
string int2String(int n);
|
||||
bool string2Int(const string & s, int & n);
|
||||
bool string2Int(const string & s, long long & n);
|
||||
|
||||
|
||||
/* Exception handling in destructors: print an error message, then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue