Changeset 91 in dev for BasicCompiler32
- Timestamp:
- Apr 7, 2007, 10:07:26 PM (18 years ago)
- Location:
- BasicCompiler32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/BasicCompiler.vcproj
r89 r91 430 430 /> 431 431 </FileConfiguration> 432 </File> 433 <File 434 RelativePath="..\BasicCompiler_Common\Diagnose.cpp" 435 > 432 436 </File> 433 437 <File -
BasicCompiler32/Compile_ProcOp.cpp
r90 r91 220 220 } 221 221 222 void CompileBufferInProcedure(UserProc *pUserProc){222 void _compile_proc(UserProc *pUserProc){ 223 223 extern char *basbuf; 224 224 extern HANDLE hHeap; … … 842 842 //ローカル変数のネーム情報は後に解放する 843 843 } 844 845 void CompileBufferInProcedure( UserProc &userProc ){ 846 if( userProc.IsUsing() == false || userProc.IsCompiled() ) return; 847 848 _compile_proc( &userProc ); 849 850 // ログを履く 851 char temporary[8192]; 852 temporary[0]=0; 853 lstrcat( temporary, "------------------------------------------------------------------\n" ); 854 sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.GetFullName().c_str() ); 855 sprintf( temporary + lstrlen(temporary), "code size: %d bytes\n", userProc.GetCodeSize() ); 856 lstrcat( temporary, "------------------------------------------------------------------\n" ); 857 lstrcat( temporary, "\n" ); 858 Smoothie::Logger::Put( temporary ); 859 } 844 860 void CompileLocal(){ 845 861 extern UserProc **ppSubHash; … … 852 868 pUserProc=GetSubHash("_System_InitDllGlobalVariables"); 853 869 if(pUserProc){ 854 CompileBufferInProcedure( pUserProc);870 CompileBufferInProcedure( *pUserProc ); 855 871 } 856 872 else SetError(300,NULL,cp); … … 870 886 pUserProc=ppSubHash[i2]; 871 887 while(pUserProc){ 872 CompileBufferInProcedure( pUserProc);888 CompileBufferInProcedure( *pUserProc ); 873 889 pUserProc=pUserProc->pNextData; 874 890 } … … 889 905 //_System_InitStaticLocalVariablesは一番最後にコンパイル 890 906 pSub_System_InitStaticLocalVariables->KillCompileStatus(); 891 CompileBufferInProcedure( pSub_System_InitStaticLocalVariables);907 CompileBufferInProcedure( *pSub_System_InitStaticLocalVariables ); 892 908 893 909 //_System_Call_Destructor_of_GlobalObjectは一番最後にコンパイル 894 910 pSub_System_Call_Destructor_of_GlobalObject->KillCompileStatus(); 895 CompileBufferInProcedure( pSub_System_Call_Destructor_of_GlobalObject);911 CompileBufferInProcedure( *pSub_System_Call_Destructor_of_GlobalObject ); 896 912 } -
BasicCompiler32/MakePeHdr.cpp
r90 r91 463 463 464 464 StepCompileProgress(); 465 466 467 468 //////////////////////////////// 469 // ここで一旦ログを取る 470 //////////////////////////////// 471 Diagnose(); 465 472 466 473
Note:
See TracChangeset
for help on using the changeset viewer.