about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-10-26T17·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-10-26T17·01+0000
commit9fa07b376dd52ee8bbcc074e59d36af3f3f2536d (patch)
treeef2d6d8d32b8a7c87c5396ab3b34b7fafa3810f1 /src/libexpr/nixexpr.cc
parentee401afad81dc7759c66829372826f98268ae606 (diff)
* String/path concatenation operator (`+').
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r--src/libexpr/nixexpr.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc
index 78f89db5e5d3..37288804d0eb 100644
--- a/src/libexpr/nixexpr.cc
+++ b/src/libexpr/nixexpr.cc
@@ -364,3 +364,15 @@ Expr makeBool(bool b)
 {
     return b ? ATmake("Bool(True)") : ATmake("Bool(False)");
 }
+
+
+Expr makeString(const string & s)
+{
+    return ATmake("Str(<str>)", s.c_str());
+}
+
+
+Expr makePath(const Path & path)
+{
+    return ATmake("Path(<str>)", path.c_str());
+}