Changeset 452 in dev for trunk/ab5.0/abdev/BasicCompiler64/MakePeHdr.cpp
- Timestamp:
- Mar 22, 2008, 9:30:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler64/MakePeHdr.cpp
r436 r452 577 577 ExportNamesLength=lstrlen(lpExportNames)+1; 578 578 579 UserProc *pUserProc,*psi2; 580 while(1){ 579 while(1) 580 { 581 UserProc *pUserProc = NULL; 582 581 583 //辞書順にサーチ 582 584 temporary[0]=0; … … 584 586 while( compiler.GetObjectModule().meta.GetUserProcs().Iterator_HasNext() ) 585 587 { 586 pUserProc = compiler.GetObjectModule().meta.GetUserProcs().Iterator_GetNext();587 if(p UserProc->IsExport()){588 UserProc *pTempUserProc = compiler.GetObjectModule().meta.GetUserProcs().Iterator_GetNext(); 589 if(pTempUserProc->IsExport()){ 588 590 if(temporary[0]=='\0'){ 589 lstrcpy(temporary,p UserProc->GetName().c_str());590 p si2=pUserProc;591 lstrcpy(temporary,pTempUserProc->GetName().c_str()); 592 pUserProc = pTempUserProc; 591 593 } 592 594 else{ 593 595 i3=lstrlen(temporary); 594 i4=(int)p UserProc->GetName().size();596 i4=(int)pTempUserProc->GetName().size(); 595 597 if(i3<i4) i3=i4; 596 if(memcmp(temporary,p UserProc->GetName().c_str(),i3)>0){597 lstrcpy(temporary,p UserProc->GetName().c_str());598 p si2=pUserProc;598 if(memcmp(temporary,pTempUserProc->GetName().c_str(),i3)>0){ 599 lstrcpy(temporary,pTempUserProc->GetName().c_str()); 600 pUserProc = pTempUserProc; 599 601 } 600 602 } 601 603 } 602 604 } 603 if(psi2==0) break; 604 pUserProc=psi2; 605 if( pUserProc == NULL ) 606 { 607 break; 608 } 605 609 606 610 pUserProc->ExportOff();
Note:
See TracChangeset
for help on using the changeset viewer.