Changeset 78 in dev for BasicCompiler32


Ignore:
Timestamp:
Mar 25, 2007, 2:47:49 AM (17 years ago)
Author:
dai_9181
Message:

CTypeDef → TypeDef
Houseクラスを追加。
オーバーロードレベルの種類を追加(レベル1に挿入)

Location:
BasicCompiler32
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/BasicCompiler.vcproj

    r76 r78  
    4848                Name="VCCLCompilerTool"
    4949                Optimization="0"
    50                 AdditionalIncludeDirectories="..\cpplibs\boost"
     50                AdditionalIncludeDirectories="..\cpplibs\boost;..\BasicCompiler_Common\include"
    5151                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;JPN"
    5252                MinimalRebuild="true"
     
    894894                        </FileConfiguration>
    895895                    </File>
    896                     <File
    897                         RelativePath="..\BasicCompiler_Common\TypeDef.cpp"
    898                         >
    899                         <FileConfiguration
    900                             Name="Debug|Win32"
    901                             >
    902                             <Tool
    903                                 Name="VCCLCompilerTool"
    904                                 PreprocessorDefinitions=""
    905                             />
    906                         </FileConfiguration>
    907                         <FileConfiguration
    908                             Name="Release|Win32"
    909                             >
    910                             <Tool
    911                                 Name="VCCLCompilerTool"
    912                                 PreprocessorDefinitions=""
    913                             />
    914                         </FileConfiguration>
    915                         <FileConfiguration
    916                             Name="English_Rel|Win32"
    917                             >
    918                             <Tool
    919                                 Name="VCCLCompilerTool"
    920                                 PreprocessorDefinitions=""
    921                             />
    922                         </FileConfiguration>
    923                     </File>
    924896                </Filter>
    925897                <Filter
     
    18791851                >
    18801852                <File
     1853                    RelativePath="..\BasicCompiler_Common\src\House.cpp"
     1854                    >
     1855                </File>
     1856                <File
    18811857                    RelativePath="..\BasicCompiler_Common\Procedure.cpp"
    18821858                    >
     
    18851861                    RelativePath="..\BasicCompiler_Common\Type.cpp"
    18861862                    >
     1863                </File>
     1864                <File
     1865                    RelativePath="..\BasicCompiler_Common\TypeDef.cpp"
     1866                    >
     1867                    <FileConfiguration
     1868                        Name="Debug|Win32"
     1869                        >
     1870                        <Tool
     1871                            Name="VCCLCompilerTool"
     1872                            PreprocessorDefinitions=""
     1873                        />
     1874                    </FileConfiguration>
     1875                    <FileConfiguration
     1876                        Name="Release|Win32"
     1877                        >
     1878                        <Tool
     1879                            Name="VCCLCompilerTool"
     1880                            PreprocessorDefinitions=""
     1881                        />
     1882                    </FileConfiguration>
     1883                    <FileConfiguration
     1884                        Name="English_Rel|Win32"
     1885                        >
     1886                        <Tool
     1887                            Name="VCCLCompilerTool"
     1888                            PreprocessorDefinitions=""
     1889                        />
     1890                    </FileConfiguration>
    18871891                </File>
    18881892                <File
     
    19351939                    >
    19361940                </File>
    1937                 <File
    1938                     RelativePath="..\BasicCompiler_Common\TypeDef.h"
    1939                     >
    1940                 </File>
    19411941            </Filter>
    19421942            <Filter
     
    19441944                >
    19451945                <File
     1946                    RelativePath="..\BasicCompiler_Common\include\House.h"
     1947                    >
     1948                </File>
     1949                <File
    19461950                    RelativePath="..\BasicCompiler_Common\Parameter.h"
    19471951                    >
     
    19531957                <File
    19541958                    RelativePath="..\BasicCompiler_Common\Type.h"
     1959                    >
     1960                </File>
     1961                <File
     1962                    RelativePath="..\BasicCompiler_Common\TypeDef.h"
    19551963                    >
    19561964                </File>
  • BasicCompiler32/Compile_Func.cpp

    r76 r78  
    254254
    255255        //オーバーロードを解決
    256         extern ProcPointer **ppProcPointer;
    257         pUserProc=OverloadSolution(name,subs,ppProcPointer[ProcPtr_BaseIndex]->Params(), Type() );
     256        pUserProc=OverloadSolution(name,subs,House::procPointers[ProcPtr_BaseIndex]->Params(), Type() );
    258257
    259258        if(!pUserProc){
  • BasicCompiler32/Compile_ProcOp.cpp

    r76 r78  
    203203        memcpy(OpBuffer+obp,Buffer_aullshr,31);
    204204        obp+=31;
     205    }
     206    else{
     207        SetError();
    205208    }
    206209}
  • BasicCompiler32/MakePeHdr.cpp

    r76 r78  
    1717    *pSub_System_InitStaticLocalVariables,
    1818    *pSub_System_Call_Destructor_of_GlobalObject,
     19    *pSub_System_End,
    1920    *pSub_System_GetSp,
    2021    *pSub_pow,
     
    150151
    151152    //関数ポインタ情報を初期化
    152     extern ProcPointer **ppProcPointer;
    153     extern int ProcPtrInfoNum;
    154     ppProcPointer=(ProcPointer **)HeapAlloc(hHeap,0,1);
    155     ProcPtrInfoNum=0;
     153    House::procPointers.clear();
    156154
    157155    //クラス名を取得(詳細情報はGetAllClassInfoで取得)
     
    161159    pobj_DBClass->InitNames();
    162160
     161    //TypeDef情報を初期化
     162    House::typeDefs.Init();
     163
    163164    //定数情報を取得
    164165    GetConstInfo();
     
    215216    }
    216217
     218    if(pSub_System_End=GetSubHash("_System_End",1)){
     219        pSub_System_End->Using();
     220    }
     221
    217222    if(pSub_System_GetSp=GetSubHash("_System_GetSp",1)){
    218223        pSub_System_GetSp->Using();
     
    314319#ifdef _DEBUG
    315320    {
    316         ofstream ofs("middle_code.txt");
     321        ofstream ofs( ( (string)BasicSystemDir + "middle_code.txt" ).c_str() );
    317322        ofs << basbuf << endl;
    318323        ofs.close();
     
    399404        ///////////////////////////////////////
    400405
    401         //call _System_Call_Destructor_of_GlobalObject
    402         extern UserProc *pSub_System_Call_Destructor_of_GlobalObject;
    403         op_call(pSub_System_Call_Destructor_of_GlobalObject);
     406        //call _System_End
     407        extern UserProc *pSub_System_End;
     408        op_call(pSub_System_End);
    404409
    405410
  • BasicCompiler32/Opcode.h

    r77 r78  
    194194
    195195//ParamImpl.cpp
    196 #define OVERLOAD_MIN_LEVEL 0
    197 #define OVERLOAD_MAX_LEVEL 3
    198 #define OVERLOAD_LEVEL0 0
    199 #define OVERLOAD_LEVEL1 1
    200 #define OVERLOAD_LEVEL2 2
    201 #define OVERLOAD_LEVEL3 3
    202196class ParamImpl{
    203197    char *Parms[255];
Note: See TracChangeset for help on using the changeset viewer.