about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-30 13:00:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-30 13:00:16 -0700
commite3cb4d0905bdfb1c0b9d520c9c0089cffc09e339 (patch)
tree19f1776957ee763be6718771d05f1e2fce95d3e2 /030container.cc
parent3a49e7e992b23d212b0c1df9e93c6564d4823ef2 (diff)
downloadmu-e3cb4d0905bdfb1c0b9d520c9c0089cffc09e339.tar.gz
2329 - hacky start to generic containers
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc
index dd596146..624648b7 100644
--- a/030container.cc
+++ b/030container.cc
@@ -381,6 +381,7 @@ else if (command == "container") {
 void insert_container(const string& command, kind_of_type kind, istream& in) {
   skip_whitespace(in);
   string name = next_word(in);
+  // End container Name Refinements
   trace(9991, "parse") << "--- defining " << command << ' ' << name << end();
   if (Type_ordinal.find(name) == Type_ordinal.end()
       || Type_ordinal[name] == 0) {
@@ -521,6 +522,7 @@ void check_invalid_types(const recipe_ordinal r) {
 
 void check_invalid_types(const type_tree* type, const string& block, const string& name) {
   if (!type) return;  // will throw a more precise error elsewhere
+  // End Container Type Checks
   if (type->value && Type.find(type->value) == Type.end()) {
     raise_error << block << "unknown type in " << name << '\n' << end();
   }