array SimpleFunc_nextFree177 integer SimpleFunc_firstFree279 integer SimpleFunc_maxIndex159 integer SimpleFunc_firstFree279 = 0 integer SimpleFunc_maxIndex159 = 0 function initGlobals164() { SimpleFunc_firstFree_279 = 0; SimpleFunc_maxIndex_159 = 0; } function main975() { initGlobals164(); init_test364(); } function config197() { } function init_test364() { alloc_SimpleFunc_test159(); } function alloc_SimpleFunc_test159() returns integer { local integer this112 if (SimpleFunc_firstFree_279 == 0) { if (SimpleFunc_maxIndex_159 < 32768) { SimpleFunc_maxIndex_159 = (SimpleFunc_maxIndex_159 + 1); this_112 = SimpleFunc_maxIndex_159; } else { error867("Out of memory: Could not create SimpleFunc_test."); this_112 = 0; }; } else { SimpleFunc_firstFree_279 = (SimpleFunc_firstFree_279 - 1); this_112 = SimpleFunc_nextFree_177[SimpleFunc_firstFree_279]; }; return this_112; } function error867(string msg135) { $debugPrint103((msg_135 + (" " + #getStackTrace()))); }