1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 12:10:59 +01:00

Small fix

This commit is contained in:
Wouter den Breejen 2007-05-21 21:56:34 +00:00
parent 5cac336820
commit 802d7f40bd
6 changed files with 26 additions and 12 deletions

View file

@ -966,5 +966,13 @@ bool string2Int(const string & s, int & n)
return str && str.get() == EOF;
}
string bool2string(const bool b)
{
if(b == true)
return "true";
else
return "false";
}
}

View file

@ -279,6 +279,8 @@ bool statusOk(int status);
string int2String(int n);
bool string2Int(const string & s, int & n);
/* Parse a bool to a string */
string bool2string(const bool b);
}