array SimpleFunc_nextFree127 integer SimpleFunc_firstFree187 integer SimpleFunc_maxIndex573 integer SimpleFunc_firstFree187 = 0 integer SimpleFunc_maxIndex573 = 0 function initGlobals476() { SimpleFunc_firstFree_187 = 0; SimpleFunc_maxIndex_573 = 0; } function main180() { initGlobals476(); init_test202(); } function config143() { } function init_test202() { alloc_SimpleFunc_test823(); } function alloc_SimpleFunc_test823() returns integer { local integer this114 if (SimpleFunc_firstFree_187 == 0) { if (SimpleFunc_maxIndex_573 < 32768) { SimpleFunc_maxIndex_573 = (SimpleFunc_maxIndex_573 + 1); this_114 = SimpleFunc_maxIndex_573; } else { error840("Out of memory: Could not create SimpleFunc_test."); this_114 = 0; }; } else { SimpleFunc_firstFree_187 = (SimpleFunc_firstFree_187 - 1); this_114 = SimpleFunc_nextFree_127[SimpleFunc_firstFree_187]; }; return this_114; } function error840(string msg189) { $debugPrint291((msg_189 + (" " + #getStackTrace()))); }