array A_nextFree105 integer A_firstFree525 integer A_maxIndex212 array Cell_nextFree107 integer Cell_firstFree354 integer Cell_maxIndex117 integer A_firstFree525 = 0 integer A_maxIndex212 = 0 integer Cell_firstFree354 = 0 integer Cell_maxIndex117 = 0 function initGlobals146() { } function main136() { initGlobals146(); new_Cell657(); new_B119(); } function config568() { } function new_B119() returns integer { local integer this174 if (A_firstFree_525 == 0) { if (A_maxIndex_212 < 32768) { A_maxIndex_212 = (A_maxIndex_212 + 1); this_174 = A_maxIndex_212; } else { error106("Out of memory: Could not create B."); this_174 = 0; }; } else { A_firstFree_525 = (A_firstFree_525 - 1); this_174 = A_nextFree_105[A_firstFree_525]; }; return this_174; } function new_Cell657() returns integer { local integer this502 if (Cell_firstFree_354 == 0) { if (Cell_maxIndex_117 < 32768) { Cell_maxIndex_117 = (Cell_maxIndex_117 + 1); this_502 = Cell_maxIndex_117; } else { error106("Out of memory: Could not create Cell."); this_502 = 0; }; } else { Cell_firstFree_354 = (Cell_firstFree_354 - 1); this_502 = Cell_nextFree_107[Cell_firstFree_354]; }; return this_502; } function error106(string msg977) { $debugPrint198((msg_977 + (" " + #getStackTrace()))); }