summaryrefslogtreecommitdiff
path: root/tools/minicargo/helpers.h
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-11-17 08:20:02 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-11-18 17:47:12 +0800
commit7a73dff85f30bb1e77818b8da8ed192c72e12626 (patch)
treec9c47c585b759db13cc47c6fc17ce9b9f89169a2 /tools/minicargo/helpers.h
parent7b06535ba9690e360417893ff1a8410f5b145440 (diff)
downloadmrust-7a73dff85f30bb1e77818b8da8ed192c72e12626.tar.gz
minicargo - Handle `[package]links=foo` (crudely)
Diffstat (limited to 'tools/minicargo/helpers.h')
-rw-r--r--tools/minicargo/helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/minicargo/helpers.h b/tools/minicargo/helpers.h
index 9f97b5bb..8111483a 100644
--- a/tools/minicargo/helpers.h
+++ b/tools/minicargo/helpers.h
@@ -40,6 +40,13 @@ public:
os.write(sv.m_start, sv.m_len);
return os;
}
+
+ const char* begin() const {
+ return m_start;
+ }
+ const char* end() const {
+ return m_start+m_len;
+ }
};