array A_nextFree656 integer A_firstFree202 integer A_maxIndex170 array Cell_nextFree516 integer Cell_firstFree193 integer Cell_maxIndex192 integer A_firstFree202 = 0 integer A_maxIndex170 = 0 integer Cell_firstFree193 = 0 integer Cell_maxIndex192 = 0 function initGlobals176() { } function main918() { initGlobals176(); new_Cell348(); new_B169(); } function config926() { } function new_B169() returns integer { local integer this524 local integer this110 if (A_firstFree_202 == 0) { if (A_maxIndex_170 < 32768) { A_maxIndex_170 = (A_maxIndex_170 + 1); this_110 = A_maxIndex_170; } else { error176("Out of memory: Could not create B."); this_110 = 0; }; } else { A_firstFree_202 = (A_firstFree_202 - 1); this_110 = A_nextFree_656[A_firstFree_202]; }; this_524 = this_110; return this_524; } function new_Cell348() returns integer { local integer this135 local integer this980 if (Cell_firstFree_193 == 0) { if (Cell_maxIndex_192 < 32768) { Cell_maxIndex_192 = (Cell_maxIndex_192 + 1); this_980 = Cell_maxIndex_192; } else { error176("Out of memory: Could not create Cell."); this_980 = 0; }; } else { Cell_firstFree_193 = (Cell_firstFree_193 - 1); this_980 = Cell_nextFree_516[Cell_firstFree_193]; }; this_135 = this_980; return this_135; } function error176(string msg969) { $debugPrint189((msg_969 + (" " + #getStackTrace()))); }