array SimpleFunc_nextFree178 integer SimpleFunc_firstFree157 integer SimpleFunc_maxIndex121 integer SimpleFunc_firstFree157 = 0 integer SimpleFunc_maxIndex121 = 0 function initGlobals465() { SimpleFunc_firstFree_157 = 0; SimpleFunc_maxIndex_121 = 0; } function main205() { initGlobals465(); init_test783(); } function config103() { } function init_test783() { alloc_SimpleFunc_test765(); } function alloc_SimpleFunc_test765() returns integer { local integer this776 if (SimpleFunc_firstFree_157 == 0) { if (SimpleFunc_maxIndex_121 < 32768) { SimpleFunc_maxIndex_121 = (SimpleFunc_maxIndex_121 + 1); this_776 = SimpleFunc_maxIndex_121; } else { error200("Out of memory: Could not create SimpleFunc_test."); this_776 = 0; }; } else { SimpleFunc_firstFree_157 = (SimpleFunc_firstFree_157 - 1); this_776 = SimpleFunc_nextFree_178[SimpleFunc_firstFree_157]; }; return this_776; } function error200(string msg812) { $debugPrint502((msg_812 + (" " + #getStackTrace()))); }