about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--010vm.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/010vm.cc b/010vm.cc
index 67dd0e1a..ffa661ef 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -275,14 +275,18 @@ reagent::reagent(const string& s) :original_string(s), type(NULL), value(0), ini
   if (name == "_" && type == NULL)
     type = new type_tree("literal", get(Type_ordinal, "literal"));
   // other properties
+  slurp_properties(in, properties);
+  // End Parsing reagent
+}
+
+void slurp_properties(istream& in, vector<pair<string, string_tree*> >& out) {
   while (has_data(in)) {
     istringstream row(slurp_until(in, '/'));
     row >> std::noskipws;
     string key = slurp_until(row, ':');
     string_tree* value = parse_property_list(row);
-    properties.push_back(pair<string, string_tree*>(key, value));
+    out.push_back(pair<string, string_tree*>(key, value));
   }
-  // End Parsing reagent
 }
 
 string_tree* parse_property_list(istream& in) {
d='n117' href='#n117'>117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174