| 5458 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 5459 | |
| 5460 | void CallbackInitialize() |
| 5461 | { |
| 5462 | currDefinedFunc.clear(); |
| 5463 | |
| 5464 | CodeInfo::funcDefList.clear(); |
| 5465 | |
| 5466 | CodeInfo::globalAliases = NULL; |
| 5467 | |
| 5468 | varDefined = false; |
| 5469 | varTop = 0; |
| 5470 | newType = NULL; |
| 5471 | instanceDepth = 0; |
| 5472 | |
| 5473 | currAlign = TypeInfo::UNSPECIFIED_ALIGNMENT; |
| 5474 | inplaceVariableNum = 1; |
| 5475 | |
| 5476 | varInfoTop.clear(); |
| 5477 | varInfoTop.push_back(VarTopInfo(0,0)); |
| 5478 | |
| 5479 | funcInfoTop.clear(); |
| 5480 | funcInfoTop.push_back(0); |
| 5481 | |
| 5482 | cycleDepth.clear(); |
| 5483 | cycleDepth.push_back(0); |
| 5484 | |
| 5485 | lostGlobalList = NULL; |
| 5486 | |
| 5487 | funcMap.init(); |
| 5488 | funcMap.clear(); |
| 5489 | |
| 5490 | varMap.init(); |
| 5491 | varMap.clear(); |
| 5492 | |
| 5493 | delayedInstance.clear(); |
| 5494 | |
| 5495 | ResetTreeGlobals(); |
| 5496 | |
| 5497 | vtblList = NULL; |
| 5498 | |
| 5499 | // Clear namespace list and place an unnamed namespace on top of namespace stack |
| 5500 | CodeInfo::namespaceInfo.clear(); |
| 5501 | namespaceStack.clear(); |
| 5502 | namespaceStack.push_back(new NamespaceInfo(InplaceStr(""), GetStringHash(""), NULL)); |
| 5503 | currNamespace = NULL; |
| 5504 | |
| 5505 | CodeInfo::classMap.clear(); |
| 5506 | CodeInfo::typeArrays.clear(); |
| 5507 | CodeInfo::typeFunctions.clear(); |
| 5508 | // Add built-in type info to hash map and special lists |
| 5509 | for(unsigned int i = 0; i < CodeInfo::typeInfo.size(); i++) |
| 5510 | { |
| 5511 | CodeInfo::classMap.insert(CodeInfo::typeInfo[i]->GetFullNameHash(), CodeInfo::typeInfo[i]); |
| 5512 | if(CodeInfo::typeInfo[i]->arrLevel) |
| 5513 | CodeInfo::typeArrays.push_back(CodeInfo::typeInfo[i]); |
| 5514 | if(CodeInfo::typeInfo[i]->funcType) |
| 5515 | CodeInfo::typeFunctions.push_back(CodeInfo::typeInfo[i]); |
| 5516 | } |
| 5517 |
no test coverage detected