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

Move some .drv parsing functions out of util

This commit is contained in:
Eelco Dolstra 2016-09-14 10:54:57 +02:00
parent 2c8c103ef8
commit e07c0dcf5c
3 changed files with 46 additions and 55 deletions

View file

@ -334,20 +334,6 @@ bool hasPrefix(const string & s, const string & prefix);
bool hasSuffix(const string & s, const string & suffix);
/* Read string `s' from stream `str'. */
void expect(std::istream & str, const string & s);
MakeError(FormatError, Error)
/* Read a C-style string from stream `str'. */
string parseString(std::istream & str);
/* Utility function used to parse legacy ATerms. */
bool endOfList(std::istream & str);
/* Escape a string that contains octal-encoded escape codes such as
used in /etc/fstab and /proc/mounts (e.g. "foo\040bar" decodes to
"foo bar"). */