Changeset 26 in dev


Ignore:
Timestamp:
Jan 7, 2007, 4:12:53 AM (17 years ago)
Author:
dai_9181
Message:

実体オブジェクトを戻り値に持つ静的メソッドをクラス内から呼び出すと「パラメータが異なる」というエラーが出るバグを修正。
Exceptionに関するファイルを追加。

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/BasicCompiler.vcproj

    r15 r26  
    12771277                    <File
    12781278                        RelativePath="..\BasicCompiler_Common\Variable.h"
     1279                        >
     1280                    </File>
     1281                </Filter>
     1282                <Filter
     1283                    Name="Exception"
     1284                    >
     1285                    <File
     1286                        RelativePath="..\BasicCompiler_Common\Exception.cpp"
     1287                        >
     1288                    </File>
     1289                    <File
     1290                        RelativePath="..\BasicCompiler_Common\Exception.h"
    12791291                        >
    12801292                    </File>
  • BasicCompiler32/Compile_CallProc.cpp

    r20 r26  
    278278                return -1;
    279279            }
     280
     281            //静的メンバ
     282            bStatic=1;
    280283        }
    281284
  • BasicCompiler64/BasicCompiler.vcproj

    r15 r26  
    15221522                    </File>
    15231523                </Filter>
     1524                <Filter
     1525                    Name="Exception"
     1526                    >
     1527                    <File
     1528                        RelativePath="..\BasicCompiler_Common\Exception.cpp"
     1529                        >
     1530                    </File>
     1531                    <File
     1532                        RelativePath="..\BasicCompiler_Common\Exception.h"
     1533                        >
     1534                    </File>
     1535                </Filter>
    15241536            </Filter>
    15251537        </Filter>
  • BasicCompiler64/Compile_CallProc.cpp

    r20 r26  
    283283                return -1;
    284284            }
     285
     286            //静的メンバ
     287            bStatic=1;
    285288        }
    286289
  • BasicCompiler_Common/BasicFixed.h

    r4 r26  
    165165#define ESC_ENDTRY      'm' //End Try
    166166//EXEファイル用制御エスケープシーケンス
    167 #define ESC_USING               'n'     //Print命令語のUsing
    168 #define ESC_FOR                 'o'     //Open命令語のFor
    169 #define ESC_LINENUM             'p'     //行番号を示す
     167#define ESC_USING       'n' //Print命令語のUsing
     168#define ESC_FOR         'o' //Open命令語のFor
     169#define ESC_LINENUM     'p' //行番号を示す
    170170
    171171//オブジェクト指向エスケープシーケンス
  • BasicCompiler_Common/Compile.cpp

    r17 r26  
    224224            case ESC_DECLARE:
    225225                break;
     226
     227                //Tryによる例外処理
     228            case ESC_TRY:
     229                Exception::TryCommand();
     230                break;
     231            case ESC_CATCH:
     232                Exception::CatchCommand();
     233                break;
     234            case ESC_FINALLY:
     235                Exception::FinallyCommand();
     236                break;
     237            case ESC_ENDTRY:
     238                Exception::EndTryCommand();
     239                break;
     240            case ESC_THROW:
     241                Exception::ThrowCommand( Command + 2 );
     242                break;
     243
    226244            default:
    227245                char temporary[64];
  • BasicCompiler_Common/common.h

    r23 r26  
    389389#include "../BasicCompiler_Common/LexicalScoping.h"
    390390#include "../BasicCompiler_Common/Variable.h"
     391#include "../BasicCompiler_Common/Exception.h"
    391392
    392393
Note: See TracChangeset for help on using the changeset viewer.