about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-05 18:49:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-05 18:49:21 -0700
commit141c540b6a49b7e94e61b0b2440ec5cc2991e653 (patch)
tree62147305aff693cac51480ed25fb2be38bf9728a
parentd135851ef94bf15f258b779098404ef6adac92b6 (diff)
downloadmu-141c540b6a49b7e94e61b0b2440ec5cc2991e653.tar.gz
2248
-rw-r--r--030container.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/030container.cc b/030container.cc
index 4adf05a0..bc87d2fc 100644
--- a/030container.cc
+++ b/030container.cc
@@ -419,6 +419,12 @@ void insert_container(const string& command, kind_of_type kind, istream& in) {
   t.size = SIZE(t.elements);
 }
 
+void skip_bracket(istream& in, string message) {
+  skip_whitespace_and_comments(in);
+  if (in.get() != '[')
+    raise << message << '\n' << end();
+}
+
 :(scenarios run)
 :(scenario container_define_twice)
 container foo [
@@ -585,12 +591,3 @@ recipe main [
 ]
 +mem: storing 3 in location 1
 +mem: storing 4 in location 2
-
-//:: helpers
-
-:(code)
-void skip_bracket(istream& in, string message) {
-  skip_whitespace_and_comments(in);
-  if (in.get() != '[')
-    raise << message << '\n' << end();
-}