Changeset 279 in dev for trunk/abdev/BasicCompiler32
- Timestamp:
- Aug 14, 2007, 3:22:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/MakePeHdr.cpp
r278 r279 174 174 // 名前空間情報を取得 175 175 NamespaceSupporter::CollectNamespaces( 176 compiler. source.GetBuffer(),176 compiler.GetObjectModule().source.GetBuffer(), 177 177 compiler.GetObjectModule().meta.GetNamespaces() 178 178 ); … … 181 181 // CollectProcedures関数の中で参照されるオブジェクト名を事前に取得する。 182 182 // ※オブジェクトの内容までは取得しない 183 compiler.GetObjectModule().meta.GetClasses().CollectClassesForNameOnly( compiler. source );183 compiler.GetObjectModule().meta.GetClasses().CollectClassesForNameOnly( compiler.GetObjectModule().source ); 184 184 185 185 //TypeDef情報を初期化 … … 192 192 compiler.pCompilingClass = NULL; 193 193 CollectProcedures( 194 compiler. source,194 compiler.GetObjectModule().source, 195 195 compiler.GetObjectModule().meta.GetUserProcs(), 196 196 compiler.GetObjectModule().meta.GetDllProcs() … … 203 203 compiler.GetObjectModule().meta.GetUserProcs().Iterator_Init(); 204 204 compiler.GetObjectModule().meta.GetDllProcs().Iterator_Init(); 205 206 /*207 if( !compiler.GetObjectModule().WriteXml( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.xml" ) )208 {209 MessageBox(0,"XML書き込みに失敗","test",0);210 }211 ObjectModule *pTempObjectModule = new ObjectModule();212 if( !pTempObjectModule->ReadXml( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.xml" ) )213 {214 MessageBox(0,"XML読み込みに失敗","test",0);215 }216 217 if( !compiler.GetObjectModule().meta.WriteBinary( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )218 {219 MessageBox(0,"バイナリ書き込みに失敗","test",0);220 }221 Meta *pTempMeta = new Meta();222 if( !pTempMeta->ReadBinary( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )223 {224 MessageBox(0,"バイナリ読み込みに失敗","test",0);225 }226 if( !compiler.GetObjectModule().meta.WriteText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )227 {228 MessageBox(0,"バイナリ書き込みに失敗","test",0);229 }230 Meta *pTempMeta = new Meta();231 if( !pTempMeta->ReadText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )232 {233 MessageBox(0,"バイナリ読み込みに失敗","test",0);234 }235 compiler.objectModule = (*pTempObjectModule);*/236 205 237 206 … … 526 495 // 静的リンクライブラリ 527 496 528 if( !compiler.GetObjectModule().Write Text( OutputFileName ) )497 if( !compiler.GetObjectModule().Write( OutputFileName ) ) 529 498 { 530 499 MessageBox(0,"XML書き込みに失敗","test",0); … … 537 506 538 507 oldSourceLines = compiler.linker.GetNativeCode().GetSourceLines(); 539 540 /*541 int t,t2;542 t=GetTickCount();543 if( !compiler.GetObjectModule().WriteText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.xml" ) )544 {545 MessageBox(0,"XML書き込みに失敗","test",0);546 }547 if( !compiler.GetObjectModule().ReadText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.xml" ) )548 {549 MessageBox(0,"XML読み込みに失敗","test",0);550 }551 t2=GetTickCount();552 t2-=t;553 char s[100];554 sprintf(s,"%d",t2);555 MessageBox(0,s,"test",0);556 557 if( !compiler.GetObjectModule().meta.WriteBinary( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )558 {559 MessageBox(0,"バイナリ書き込みに失敗","test",0);560 }561 Meta *pTempMeta = new Meta();562 if( !pTempMeta->ReadBinary( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )563 {564 MessageBox(0,"バイナリ読み込みに失敗","test",0);565 }566 if( !compiler.GetObjectModule().meta.WriteText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )567 {568 MessageBox(0,"バイナリ書き込みに失敗","test",0);569 }570 Meta *pTempMeta = new Meta();571 if( !pTempMeta->ReadText( Jenga::Common::Environment::GetAppDir() + "\\objectModule_test.dat" ) )572 {573 MessageBox(0,"バイナリ読み込みに失敗","test",0);574 }*/575 508 576 509
Note:
See TracChangeset
for help on using the changeset viewer.