From 1211a3ab30eb5cfbf1cb5b910eefb8d64dcb2107 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 7 Nov 2016 09:10:48 -0800 Subject: 3643 Standardize on calling literate waypoints "Special-cases" rather than "Cases". Invariably there's a default path already present. --- 032array.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '032array.cc') diff --git a/032array.cc b/032array.cc index c9182912..b4a5848a 100644 --- a/032array.cc +++ b/032array.cc @@ -98,7 +98,7 @@ def main [ ] +app: foo: 3 14 15 16 -:(before "End size_of(reagent r) Cases") +:(before "End size_of(reagent r) Special-cases") if (!r.type->atom && r.type->left->atom && r.type->left->value == get(Type_ordinal, "array")) { if (!r.type->right) { raise << maybe(current_recipe_name()) << "'" << r.original_string << "' is an array of what?\n" << end(); @@ -112,7 +112,7 @@ if (!r.type->atom && r.type->left->atom && r.type->left->value == get(Type_ordin //: disable the size mismatch check for arrays since the destination array //: need not be initialized -:(before "End size_mismatch(x) Cases") +:(before "End size_mismatch(x) Special-cases") if (x.type && !x.type->atom && x.type->left->value == get(Type_ordinal, "array")) return false; //: arrays are disallowed inside containers unless their length is fixed in @@ -133,7 +133,7 @@ container foo [ //: disable the size mismatch check for 'merge' instructions since containers //: can contain arrays, and since we already do plenty of checking for them -:(before "End size_mismatch(x) Cases") +:(before "End size_mismatch(x) Special-cases") if (current_call().running_step_index < SIZE(get(Recipe, current_call().running_recipe).steps) && current_instruction().operation == MERGE) { return false; -- cgit 1.4.1-2-gfad0