Ignore:
Timestamp:
May 10, 2008, 3:09:26 PM (16 years ago)
Author:
dai_9181
Message:

[585][586]をリバース。NativeCodeクラスとMetaクラスは依存関係があるので分離しない方針とする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp

    r585 r587  
    7878    {
    7979        // テキストデータにシリアライズ
    80         Jenga::Common::Binary binary;
    81         compiler.GetObjectModule().Save( binary );
     80        std::string textString;
     81        compiler.GetObjectModule().WriteString( textString );
    8282
    8383        // サイズ
    84         *(long *)(buffer+i2) = (long)binary.GetSize();
     84        *(long *)(buffer+i2) = (long)textString.size();
    8585        i2+=sizeof(long);
    8686
    8787        //バッファが足りない場合は再確保
    88         if(BufferSize<i2+(int)binary.GetSize()+32768){
    89             while( BufferSize<i2+(int)binary.GetSize()+32768 )
     88        if(BufferSize<i2+(int)textString.size()+32768){
     89            while( BufferSize<i2+(int)textString.size()+32768 )
    9090            {
    9191                BufferSize+=32768;
     
    9696
    9797        // バッファ
    98         memcpy( buffer+i2, binary.GetBuffer(), binary.GetSize() );
    99         i2 += (int)binary.GetSize();
     98        memcpy( buffer+i2, textString.c_str(), textString.size() );
     99        i2 += (int)textString.size();
    100100    }
    101101
     
    187187
    188188        // バッファ
    189         const Jenga::Common::Binary binary( (const char *)(buffer + i2), size );
     189        const std::string textString( (const char *)(buffer + i2), size );
    190190        i2 += size;
    191191
    192192        // テキストデータからシリアライズ
    193         this->objectModule.Load( binary );
     193        this->objectModule.ReadString( textString );
    194194
    195195        compiler.SelectObjectModule( this->objectModule );
     
    247247    //ソースコード
    248248    extern char *basbuf;
    249     basbuf = const_cast<char *>(compiler.GetObjectModule().nativeSection.GetSource(0).GetBuffer());
     249    basbuf = const_cast<char *>(compiler.GetObjectModule().GetSource(0).GetBuffer());
    250250
    251251
Note: See TracChangeset for help on using the changeset viewer.