array SimpleFunc_nextFree407 integer SimpleFunc_firstFree174 integer SimpleFunc_maxIndex785 integer SimpleFunc_firstFree174 = 0 integer SimpleFunc_maxIndex785 = 0 function initGlobals262() { } function main150() { initGlobals262(); init_test205(); } function config134() { } function init_test205() { alloc_SimpleFunc_test745(); } function alloc_SimpleFunc_test745() returns integer { local integer this213 if (SimpleFunc_firstFree_174 == 0) { if (SimpleFunc_maxIndex_785 < 32768) { SimpleFunc_maxIndex_785 = (SimpleFunc_maxIndex_785 + 1); this_213 = SimpleFunc_maxIndex_785; } else { error156("Out of memory: Could not create SimpleFunc_test."); this_213 = 0; }; } else { SimpleFunc_firstFree_174 = (SimpleFunc_firstFree_174 - 1); this_213 = SimpleFunc_nextFree_407[SimpleFunc_firstFree_174]; }; return this_213; } function error156(string msg122) { $debugPrint586((msg_122 + (" " + #getStackTrace()))); }