diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 17:20:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 17:20:56 -0700 |
commit | 385d3080066bc22d264b1ae30ee2505cab6cc202 (patch) | |
tree | 7bcba1addf558d70cc4b4605a253d7b12abd31fb /045space_surround.cc | |
parent | f59ccc4652bfdb7faf7d77a1685e795342e28fa2 (diff) | |
download | mu-385d3080066bc22d264b1ae30ee2505cab6cc202.tar.gz |
1769 - routines can now have global variables
Diffstat (limited to '045space_surround.cc')
-rw-r--r-- | 045space_surround.cc | 6 |
1 files changed, 0 insertions, 6 deletions
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); |