From 215b70f51e5abd350c9b7db656aedac9d96d0046 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 26 Nov 2016 00:37:43 +0100 Subject: Revert "Get rid of unicode quotes (#1140)" This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change... --- src/libutil/util.hh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 5ffdbaa8869e..1ede48a65ff2 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -370,7 +370,7 @@ void ignoreException(); #define ANSI_RED "\e[31;1m" -/* Filter out ANSI escape codes from the given string. If 'nixOnly' is +/* Filter out ANSI escape codes from the given string. If ‘nixOnly’ is set, only filter escape codes generated by Nixpkgs' stdenv (used to denote nesting etc.). */ string filterANSIEscapes(const string & s, bool nixOnly = false); @@ -391,15 +391,15 @@ string get(const T & map, const string & key, const string & def = "") } -/* Call 'failure' with the current exception as argument. If 'failure' +/* Call ‘failure’ with the current exception as argument. If ‘failure’ throws an exception, abort the program. */ void callFailure(const std::function & failure, std::exception_ptr exc = std::current_exception()); -/* Evaluate the function 'f'. If it returns a value, call 'success' - with that value as its argument. If it or 'success' throws an - exception, call 'failure'. If 'failure' throws an exception, abort +/* Evaluate the function ‘f’. If it returns a value, call ‘success’ + with that value as its argument. If it or ‘success’ throws an + exception, call ‘failure’. If ‘failure’ throws an exception, abort the program. */ template void sync2async( @@ -415,8 +415,8 @@ void sync2async( } -/* Call the function 'success'. If it throws an exception, call - 'failure'. If that throws an exception, abort the program. */ +/* Call the function ‘success’. If it throws an exception, call + ‘failure’. If that throws an exception, abort the program. */ template void callSuccess( const std::function & success, -- cgit 1.4.1