From 385d3080066bc22d264b1ae30ee2505cab6cc202 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 13 Jul 2015 17:20:56 -0700 Subject: 1769 - routines can now have global variables --- 045space_surround.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to '045space_surround.cc') diff --git a/045space_surround.cc b/045space_surround.cc index 61521013..b90d464f 100644 --- a/045space_surround.cc +++ b/045space_surround.cc @@ -27,24 +27,18 @@ recipe main [ :(replace{} "long long int space_base(const reagent& x)") long long int space_base(const reagent& x) { -//? cerr << "space_base: " << x.to_string() << '\n'; //? 1 return space_base(x, space_index(x), Current_routine->calls.front().default_space); } long long int space_base(const reagent& x, long long int space_index, long long int base) { -//? trace("foo") << "base of space " << space_index << '\n'; //? 1 -//? cerr << "space_base sub: " << x.to_string() << '\n'; //? 1 if (space_index == 0) { -//? trace("foo") << "base of space " << space_index << " is " << base << '\n'; //? 1 return base; } -//? trace("foo") << "base of space " << space_index << " is " << Memory[base+1] << '\n'; //? 1 long long int result = space_base(x, space_index-1, Memory[base+1]); return result; } long long int space_index(const reagent& x) { -//? cerr << "space_index: " << x.to_string() << '\n'; //? 1 for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) { if (x.properties.at(i).first == "space") { assert(SIZE(x.properties.at(i).second) == 1); -- cgit 1.4.1-2-gfad0