array C_nextFree583 integer C_firstFree353 integer C_maxIndex183 integer C_firstFree353 = 0 integer C_maxIndex183 = 0 function initGlobals100() { } function main268() { local integer zeroEnum123 local integer zeroInt198 local integer zeroEnum2176 initGlobals100(); zeroEnum_123 = 0; zeroInt_198 = (zeroEnum_123 castTo integer); zeroEnum2_176 = (zeroInt_198 castTo integer); takesInt359((zeroEnum_123 castTo integer)); takesInt359(zeroInt_198); takesInt359((zeroEnum2_176 castTo integer)); testClass973(); } function config181() { } IS_NATIVE function takesInt359(integer i171) { } function testClass973() { local integer cObj189 local integer cInt124 local integer cObj2532 cObj_189 = new_C150(); cInt_124 = (cObj_189 castTo integer); cObj2_532 = (cInt_124 castTo integer); takesC145(cObj_189); takesInt359(cInt_124); takesC145(cObj2_532); } IS_NATIVE function takesC145(integer c146) { } function new_C150() returns integer { local integer this200 local integer this194 if (C_firstFree_353 == 0) { if (C_maxIndex_183 < 32768) { C_maxIndex_183 = (C_maxIndex_183 + 1); this_194 = C_maxIndex_183; } else { error245("Out of memory: Could not create C."); this_194 = 0; }; } else { C_firstFree_353 = (C_firstFree_353 - 1); this_194 = C_nextFree_583[C_firstFree_353]; }; this_200 = this_194; return this_200; } function error245(string msg142) { $debugPrint127((msg_142 + (" " + #getStackTrace()))); }