Ignore:
Timestamp:
Mar 24, 2008, 8:05:20 PM (16 years ago)
Author:
dai_9181
Message:

Messenger/ErrorMessengerクラスを導入。SetError関数によるエラー生成を廃止した。

File:
1 edited

Legend:

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

    r461 r465  
    299299            SendMessage(hwnd,EM_GETSEL,(WPARAM)&pos,0);
    300300            i=(int)SendMessage(hwnd,EM_LINEFROMCHAR,pos,0);
    301             ShowErrorLine(pErrorInfo[i].line,pErrorInfo[i].FileName);
     301            compiler.errorMessenger.ShowErrorLine( i );
    302302
    303303            StartPos=(int)SendMessage(hwnd,EM_LINEINDEX,i,0);
     
    808808    lstrcat(BasicCurDir,temporary);
    809809
    810     //エラーリスト情報を初期化
    811     pErrorInfo=(ERRORINFO *)HeapAlloc(hHeap,0,1);
    812     ErrorNum=0;
    813     CompileMsgNum=0;
    814     WarningNum=0;
    815     bError=0;
    816 
    817810    if(bClipCompileView){
    818811        //ProjectEditor埋め込み型インターフェイス
     
    859852    }
    860853
    861     //エラーリスト情報を解放
    862     for(i=0;i<ErrorNum;i++){
    863         if(pErrorInfo[i].FileName) HeapDefaultFree(pErrorInfo[i].FileName);
    864     }
    865     HeapDefaultFree(pErrorInfo);
    866 
    867854    //不揮発性データを保存
    868855    pobj_nv->save();
Note: See TracChangeset for help on using the changeset viewer.