From bc98ddb2b699682dffb5590f9c5e5b2bf36cb278 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 20 Aug 2016 17:51:58 -0700 Subject: 3229 - fake file systems using 'assume-filesystem' Built with Stephen Malina. --- 082scenario_screen.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '082scenario_screen.cc') diff --git a/082scenario_screen.cc b/082scenario_screen.cc index 006547f9..5443a369 100644 --- a/082scenario_screen.cc +++ b/082scenario_screen.cc @@ -116,10 +116,6 @@ scenario screen-in-scenario-color [ ] +error: expected screen location (0, 0) to be in color 2 instead of 1 -//: allow naming just for 'screen' -:(before "End is_special_name Cases") -if (s == "screen") return true; - :(scenarios run) :(scenario convert_names_does_not_fail_when_mixing_special_names_and_numeric_locations) % Scenario_testing_scenario = true; @@ -148,8 +144,13 @@ assert(Name[tmp_recipe.at(0)][""] < Max_variables_in_scenarios); // Scenario Globals. const int SCREEN = Next_predefined_global_for_scenarios++; // End Scenario Globals. + +//: give 'screen' a fixed location in scenarios :(before "End Special Scenario Variable Names(r)") Name[r]["screen"] = SCREEN; +//: make 'screen' always a raw location in scenarios +:(before "End is_special_name Cases") +if (s == "screen") return true; :(before "End Rewrite Instruction(curr, recipe result)") // rewrite `assume-screen width, height` to -- cgit 1.4.1-2-gfad0