aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-11-26 00:37:43 +0100
committerEelco Dolstra <edolstra@gmail.com>2016-11-26 00:38:01 +0100
commit215b70f51e5abd350c9b7db656aedac9d96d0046 (patch)
tree95778448ecdfbc1d8f4c254813cc5d91ed62a832 /src/libutil/util.hh
parentf78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 (diff)
Revert "Get rid of unicode quotes (#1140)"
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 5ffdbaa88..1ede48a65 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<void(std::exception_ptr exc)> & 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<class T>
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<class T>
void callSuccess(
const std::function<void(T)> & success,