Changeset 224 in dev for trunk/abdev/BasicCompiler32
- Timestamp:
- Jul 21, 2007, 4:46:33 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Var.cpp
r206 r224 849 849 char *temp; 850 850 temp=(char *)i64data; 851 i2=compiler.Get NativeCode().GetDataTable().AddString(temp,lstrlen(temp));851 i2=compiler.GetDataTable().AddString(temp,lstrlen(temp)); 852 852 HeapDefaultFree(temp); 853 853 … … 1047 1047 char *temp; 1048 1048 temp=(char *)i64data; 1049 i2=compiler.Get NativeCode().GetDataTable().AddString(temp,lstrlen(temp));1049 i2=compiler.GetDataTable().AddString(temp,lstrlen(temp)); 1050 1050 HeapDefaultFree(temp); 1051 1051 -
trunk/abdev/BasicCompiler32/MakePeHdr.cpp
r223 r224 146 146 ////////////////// 147 147 // データテーブル 148 compiler.Get NativeCode().GetDataTable().Init();148 compiler.GetDataTable().Init(); 149 149 if(bDebugCompile){ 150 compiler.Get NativeCode().GetDataTable().Add( (long)0x00000002 );150 compiler.GetDataTable().Add( (long)0x00000002 ); 151 151 } 152 152 … … 919 919 920 920 //データセクションのファイル上のサイズ 921 if(compiler.Get NativeCode().GetDataTable().GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetNativeCode().GetDataTable().GetSize()+(FILE_ALIGNMENT-compiler.GetNativeCode().GetDataTable().GetSize()%FILE_ALIGNMENT);922 else FileSize_DataSection=compiler.Get NativeCode().GetDataTable().GetSize();921 if(compiler.GetDataTable().GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetDataTable().GetSize()+(FILE_ALIGNMENT-compiler.GetDataTable().GetSize()%FILE_ALIGNMENT); 922 else FileSize_DataSection=compiler.GetDataTable().GetSize(); 923 923 if(FileSize_DataSection) bUse_DataSection=1; 924 924 else bUse_DataSection=0; … … 1638 1638 if(bUse_DataSection){ 1639 1639 //データ テーブル 1640 WriteFile(hFile,compiler.Get NativeCode().GetDataTable().GetPtr(),compiler.GetNativeCode().GetDataTable().GetSize(),(DWORD *)&i2,NULL);1640 WriteFile(hFile,compiler.GetDataTable().GetPtr(),compiler.GetDataTable().GetSize(),(DWORD *)&i2,NULL); 1641 1641 i+=i2; 1642 1642 } -
trunk/abdev/BasicCompiler32/NumOpe.cpp
r208 r224 600 600 } 601 601 602 i2 = compiler.Get NativeCode().GetDataTable().AddBinary( binary, num * tempBaseType.GetSize() );602 i2 = compiler.GetDataTable().AddBinary( binary, num * tempBaseType.GetSize() ); 603 603 604 604 //mov eax,i2 … … 758 758 bLiteralCalculation=0; 759 759 760 i2=compiler.Get NativeCode().GetDataTable().AddString(term,i3);760 i2=compiler.GetDataTable().AddString(term,i3); 761 761 762 762 //push DataSize
Note:
See TracChangeset
for help on using the changeset viewer.