Changeset 100 in dev for BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Apr 24, 2007, 3:17:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/DebugMiddleFile.cpp
r88 r100 205 205 206 206 //プロシージャ情報 207 extern UserProc **ppSubHash;207 extern GlobalProc **ppSubHash; 208 208 extern int SubNum; 209 UserProc *pUserProc;209 GlobalProc *pUserProc; 210 210 *(long *)(buffer+i2)=SubNum; 211 211 i2+=sizeof(long); … … 574 574 575 575 //プロシージャ情報 576 UserProc *pUserProc;576 GlobalProc *pUserProc; 577 577 SubNum=*(long *)(buffer+i2); 578 578 i2+=sizeof(long); 579 ppSubHash=( UserProc **)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,MAX_HASH*sizeof(UserProc *));579 ppSubHash=(GlobalProc **)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,MAX_HASH*sizeof(GlobalProc *)); 580 580 for(int i6=0;i6<SubNum;i6++){ 581 581 char szParentClassName[VN_SIZE]; … … 596 596 597 597 // オブジェクトを生成 598 pUserProc = new UserProc( name, UserProc::Function, false, false, false ); 598 // TODO: 名前空間が未完成 599 pUserProc = new GlobalProc( NamespaceScopes(), name, Procedure::Function, false, false, false ); 599 600 pUserProc->pNextData=0; 600 601 pUserProc->id=id; … … 664 665 i4=hash_default(pUserProc->GetName().c_str()); 665 666 666 UserProc *psi2;667 GlobalProc *psi2; 667 668 if(ppSubHash[i4]){ 668 669 psi2=ppSubHash[i4]; … … 730 731 i2+=sizeof(long); 731 732 for( i4=0; i4<nMethod; i4++ ){ 732 CMethod *method = new CMethod(); 733 734 method->dwAccess=*(long *)(buffer+i2); 733 734 DWORD dwAccess=*(long *)(buffer+i2); 735 735 i2+=sizeof(long); 736 736 … … 739 739 i2+=lstrlen(buffer+i2)+1; 740 740 741 if(szInherits[0]) 742 method->pobj_InheritsClass=pobj_DBClass->check(szInherits); 743 else method->pobj_InheritsClass=0; 741 CClass *pobj_InheritsClass = NULL; 742 if(szInherits[0]){ 743 pobj_InheritsClass=pobj_DBClass->check(szInherits); 744 } 744 745 745 746 lstrcpy(temp2,buffer+i2); … … 747 748 748 749 CClass *pobj_temp_c; 749 pobj_temp_c= method->pobj_InheritsClass;750 pobj_temp_c=pobj_InheritsClass; 750 751 if(pobj_temp_c==0) pobj_temp_c=pobj_c; 751 752 i5=hash_default(temp2); … … 755 756 pUserProc=pUserProc->pNextData; 756 757 } 757 method->pUserProc=pUserProc; 758 759 CMethod *method = new CMethod( pUserProc, dwAccess, 0,0,false, false); 760 method->pobj_InheritsClass = pobj_InheritsClass; 758 761 759 762 pobj_c->methods.push_back( method ); … … 795 798 796 799 797 extern UserProc **ppSubHash;800 extern GlobalProc **ppSubHash; 798 801 ppSubHash=this->ppSubHash; 799 802 pSub_DebugSys_EndProc=GetSubHash("_DebugSys_EndProc"); … … 951 954 extern char **ppMacroNames; 952 955 ppMacroNames=0; 953 extern UserProc **ppSubHash;956 extern GlobalProc **ppSubHash; 954 957 extern int SubNum; 955 958 ppSubHash=this->ppSubHash;
Note:
See TracChangeset
for help on using the changeset viewer.