array C_nextFree334 integer C_firstFree137 integer C_maxIndex147 array D_nextFree565 integer D_firstFree585 integer D_maxIndex863 integer C_firstFree137 = 0 integer C_maxIndex147 = 0 integer D_firstFree585 = 0 integer D_maxIndex863 = 0 function initGlobals987() { } function main370() { initGlobals987(); new_C824(); new_D162(); } function config377() { } function new_C824() returns integer { local integer this157 local integer this680 if (C_firstFree_137 == 0) { if (C_maxIndex_147 < 32768) { C_maxIndex_147 = (C_maxIndex_147 + 1); this_680 = C_maxIndex_147; } else { error174("Out of memory: Could not create C."); this_680 = 0; }; } else { C_firstFree_137 = (C_firstFree_137 - 1); this_680 = C_nextFree_334[C_firstFree_137]; }; this_157 = this_680; return this_157; } function new_D162() returns integer { local integer this177 local integer this257 if (D_firstFree_585 == 0) { if (D_maxIndex_863 < 32768) { D_maxIndex_863 = (D_maxIndex_863 + 1); this_257 = D_maxIndex_863; } else { error174("Out of memory: Could not create D."); this_257 = 0; }; } else { D_firstFree_585 = (D_firstFree_585 - 1); this_257 = D_nextFree_565[D_firstFree_585]; }; this_177 = this_257; return this_177; } function error174(string msg653) { $debugPrint234((msg_653 + (" " + #getStackTrace()))); }