Changeset 461 in dev


Ignore:
Timestamp:
Mar 23, 2008, 11:35:33 AM (16 years ago)
Author:
dai_9181
Message:

smoothieプロジェクトが不要になったため、破棄。

Location:
trunk/ab5.0
Files:
5 deleted
45 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler32/BasicCompiler.vcproj

    r455 r461  
    7676            <Tool
    7777                Name="VCLinkerTool"
    78                 AdditionalDependencies="comctl32.lib psapi.lib commond.lib smoothied.lib imagehlp.lib shlwapi.lib"
     78                AdditionalDependencies="comctl32.lib psapi.lib commond.lib imagehlp.lib shlwapi.lib"
    7979                OutputFile="../ActiveBasic/BasicCompiler32.exe"
    8080                LinkIncremental="2"
     
    180180            <Tool
    181181                Name="VCLinkerTool"
    182                 AdditionalDependencies="comctl32.lib psapi.lib common.lib smoothie.lib imagehlp.lib shlwapi.lib"
     182                AdditionalDependencies="comctl32.lib psapi.lib common.lib imagehlp.lib shlwapi.lib"
    183183                OutputFile="../ActiveBasic/BasicCompiler32.exe"
    184184                LinkIncremental="1"
     
    13541354                    </File>
    13551355                    <File
    1356                         RelativePath="..\BasicCompiler_Common\src\SmoothieImpl.cpp"
    1357                         >
    1358                     </File>
    1359                     <File
    13601356                        RelativePath="..\BasicCompiler_Common\src\Source.cpp"
    13611357                        >
     
    13891385            </File>
    13901386            <File
     1387                RelativePath="..\BasicCompiler_Common\BasicFixed.h"
     1388                >
     1389            </File>
     1390            <File
    13911391                RelativePath="CommandValue.h"
    13921392                >
     
    15401540                    <File
    15411541                        RelativePath="..\BasicCompiler_Common\include\Prototype.h"
    1542                         >
    1543                     </File>
    1544                     <File
    1545                         RelativePath="..\BasicCompiler_Common\include\SmoothieImpl.h"
    15461542                        >
    15471543                    </File>
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_Calc.cpp

    r436 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
     
    8280            //符号あり
    8381
    84             if(OldType==DEF_INTEGER || (Smoothie::IsUnicode()&&OldType==DEF_CHAR)){
     82            if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){
    8583                //pop eax
    8684                compiler.codeGenerator.op_pop(REG_EAX);
     
    9290                compiler.codeGenerator.op_push(REG_EAX);
    9391            }
    94             else if(OldType==DEF_SBYTE || (Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){
     92            else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){
    9593                //pop eax
    9694                compiler.codeGenerator.op_pop(REG_EAX);
     
    166164            //符号あり
    167165
    168             if(OldType==DEF_INTEGER || (Smoothie::IsUnicode()&&OldType==DEF_CHAR)){
     166            if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){
    169167                //pop eax
    170168                compiler.codeGenerator.op_pop(REG_EAX);
     
    176174                compiler.codeGenerator.op_push(REG_EAX);
    177175            }
    178             else if(OldType==DEF_SBYTE || (Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){
     176            else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){
    179177                //pop eax
    180178                compiler.codeGenerator.op_pop(REG_EAX);
     
    294292    if(OldType==DEF_BOOLEAN||
    295293        OldType==DEF_BYTE||
    296         OldType==DEF_WORD||OldType==DEF_INTEGER || (Smoothie::IsUnicode()&&OldType==DEF_CHAR)) return;
    297     else if(OldType==DEF_SBYTE || (Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){
     294        OldType==DEF_WORD||OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)) return;
     295    else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){
    298296        //pop eax
    299297        compiler.codeGenerator.op_pop(REG_EAX);
     
    320318void ChangeTypeToByte(int OldType){
    321319    //現在のスタックの内容をbyte型に変換する
    322     if(OldType==DEF_BYTE||OldType==DEF_SBYTE || (Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)) return;
     320    if(OldType==DEF_BYTE||OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)) return;
    323321
    324322    ChangeTypeToLong(OldType);
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_CallProc.cpp

    r459 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_Func.cpp

    r449 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_ProcOp.cpp

    r459 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Program.h>
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_Set_Var.cpp

    r290 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
     
    212210}
    213211void ExtendTypeTo32(int type,int reg){
    214     if(type==DEF_INTEGER || (Smoothie::IsUnicode()&&type==DEF_CHAR)){
     212    if(type==DEF_INTEGER || (compiler.IsUnicode()&&type==DEF_CHAR)){
    215213        //movsx reg32,reg16
    216214        compiler.codeGenerator.op_movsx_R32R16(reg,reg);
     
    220218        compiler.codeGenerator.op_and_RV(reg,(int)0x0000FFFF);
    221219    }
    222     else if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){
     220    else if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){
    223221        //movsx reg32,reg8
    224222        compiler.codeGenerator.op_movsx_R32R8(reg,reg);
     
    230228}
    231229void ExtendTypeTo16(int type,int reg){
    232     if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){
     230    if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){
    233231        //movsx reg16,reg8
    234232        compiler.codeGenerator.op_movsx_R16R8(reg,reg);
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_Var.cpp

    r453 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <LexicalScope.h>
  • trunk/ab5.0/abdev/BasicCompiler32/NumOpe.cpp

    r436 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
     
    4139        compiler.codeGenerator.op_push(REG_EAX);
    4240    }
    43     else if(type==DEF_INTEGER || (Smoothie::IsUnicode()&&type==DEF_CHAR)){
     41    else if(type==DEF_INTEGER || (compiler.IsUnicode()&&type==DEF_CHAR)){
    4442        //movsx ebx,ax
    4543        compiler.codeGenerator.op_movsx_R32R16( REG_EBX, REG_EAX );
     
    4846        compiler.codeGenerator.op_push(REG_EBX);
    4947    }
    50     else if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){
     48    else if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){
    5149        //movsx ebx,al
    5250        compiler.codeGenerator.op_movsx_R32R8( REG_EBX, REG_EAX );
  • trunk/ab5.0/abdev/BasicCompiler32/NumOpe_TypeOperation.cpp

    r290 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler32/stdafx.h

    r457 r461  
    2424
    2525#include "../BasicCompiler_Common/common.h"
     26#include "../BasicCompiler_Common/BasicFixed.h"
    2627
    2728#include <Hashmap.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r459 r461  
    44
    55#include <jenga/include/common/Path.h>
    6 
    7 #include <jenga/include/smoothie/Smoothie.h>
    86
    97#include <Program.h>
     
    647645        {
    648646            // Unicode
    649             Smoothie::SetUnicodeMark( true );
     647            compiler.SetUnicodeMark( true );
    650648            typeOfPtrChar = MAKE_PTR_TYPE(DEF_WORD,1);
    651649            typeOfPtrUChar = MAKE_PTR_TYPE(DEF_WORD,1);
  • trunk/ab5.0/abdev/BasicCompiler_Common/Compile.cpp

    r459 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <LexicalScope.h>
     
    764761            }
    765762
    766             try
    767             {
    768                 ChangeOpcode(Command);
    769             }
    770             catch( const SmoothieException &smoothieException )
    771             {
    772                 SetError(
    773                     smoothieException.GetErrorCode(),
    774                     smoothieException.GetKeyword(),
    775                     smoothieException.GetNowLine()
    776                 );
    777             }
     763            ChangeOpcode(Command);
    778764
    779765
  • trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp

    r313 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/Diagnose.cpp

    r342 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step1.cpp

    r459 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
     
    314312                }
    315313                SlideString(basbuf+i2,i-i2);
    316             }
    317             else if( lstrcmpi( temporary, "_fullcompile" ) == 0 ){
    318                 // すべての関数・メソッドをコンパイルする(デバッグ用)
    319                 for(;;i2++){
    320                     if(basbuf[i2]=='\n'||basbuf[i2]=='\0') break;
    321                 }
    322                 SlideString(basbuf+i2,i-i2);
    323 
    324                 Smoothie::isFullCompile = true;
    325314            }
    326315            else if(lstrcmpi(temporary,"resource")==0){
  • trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp

    r402 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp

    r459 r461  
    11#include "stdafx.h"
    22
    3 #include <jenga/include/smoothie/Smoothie.h>
    43#include <jenga/include/common/Path.h>
    54
  • trunk/ab5.0/abdev/BasicCompiler_Common/NumOpe_GetType.cpp

    r428 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/Subroutine.cpp

    r402 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/VarList.cpp

    r409 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp

    r429 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
     
    118116            return DEF_QWORD;
    119117        case DEF_CHAR:
    120             if( Smoothie::IsUnicode() ) return DEF_WORD;
     118            if( compiler.IsUnicode() ) return DEF_WORD;
    121119            return DEF_BYTE;
    122120    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/WatchList.cpp

    r409 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/common.h

    r431 r461  
    1818#endif
    1919
    20 #include <jenga/include/smoothie/BasicFixed.h>
    2120#include "../BasicCompiler_Common/NonVolatile.h"
    2221#include "../BasicCompiler_Common/psapi.h"
  • trunk/ab5.0/abdev/BasicCompiler_Common/hash.cpp

    r415 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Compiler.h

    r459 r461  
    3333    bool isDebug;
    3434
     35    // Unicode対応モジュールかどうか
     36    bool isUnicode;
     37
    3538    // 名前空間サポート
    3639    NamespaceSupporter namespaceSupporter;
     
    4750        , targetModuleType( Exe )
    4851        , isDebug( false )
     52        , isUnicode( false )
    4953        , isCore( false )
    5054    {
     
    142146    }
    143147
     148    void SetUnicodeMark( bool isUnicode )
     149    {
     150        this->isUnicode = isUnicode;
     151    }
     152    bool IsUnicode()
     153    {
     154        return isUnicode;
     155    }
     156
    144157
    145158    // コアモジュールかどうか
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalScope.h

    r248 r461  
    11#pragma once
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <CodeGenerator.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Parameter.h

    r448 r461  
    33#include <string>
    44#include <vector>
    5 
    6 #include <jenga/include/smoothie/BasicFixed.h>
    75
    86#include <option.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Source.h

    r322 r461  
    99
    1010#include <jenga/include/common/Exception.h>
    11 #include <jenga/include/smoothie/BasicFixed.h>
    1211
    1312#include <BoostSerializationSupport.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Type.h

    r448 r461  
    88#include <jenga/include/common/Exception.h>
    99#include <BoostSerializationSupport.h>
    10 #include <jenga/include/smoothie/BasicFixed.h>
    1110
    1211#include <option.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp

    r447 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <Source.h>
     
    202199        const CClass *pInheritsClass = compiler.GetObjectModule().meta.GetClasses().Find(className);
    203200        if( !pInheritsClass ){
    204             SmoothieException::Throw(106,className,nowLine);
     201            SetError(106,className,nowLine);
    205202            return false;
    206203        }
     
    239236    if( !compiler.GetObjectModule().meta.GetClasses().LoopRefCheck(inheritsClass) )
    240237    {
    241         SmoothieException::Throw(123,inheritsClass.GetName(),nowLine);
     238        SetError(123,inheritsClass.GetName(),nowLine);
    242239        return false;
    243240    }
     
    14681465            pCompilingMethod = pParentClass->GetStaticMethods().GetMethodPtr( pUserProc );
    14691466            if( !pCompilingMethod ){
    1470                 SmoothieException::Throw(300);
     1467                SetError();
    14711468            }
    14721469        }
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Class_Collect.cpp

    r424 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <Source.h>
     
    105102        else if( source[i] == 1 && source[i+1] == ESC_ENDNAMESPACE ){
    106103            if( namespaceScopes.size() <= 0 ){
    107                 SmoothieException::Throw(12, "End Namespace", i );
     104                SetError(12, "End Namespace", i );
    108105            }
    109106            else{
     
    124121            if( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ) )
    125122            {
    126                 SmoothieException::Throw(64,temporary,i );
     123                SetError(64,temporary,i );
    127124            }
    128125
     
    306303            if( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ) )
    307304            {
    308                 SmoothieException::Throw(64,temporary,i );
     305                SetError(64,temporary,i );
    309306            }
    310307
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Compiler.cpp

    r424 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/SmoothieException.h>
    42
    53#include <Compiler.h>
     
    208206    }
    209207
    210     SmoothieException::Throw( 1 );
     208    SetError(1, NULL, cp);
    211209
    212210    return (string)"(null)";
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/DataTable.cpp

    r417 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <DataTable.h>
     
    3937    int retSize = size;
    4038
    41     if( Smoothie::IsUnicode() ){
     39    if( compiler.IsUnicode() ){
    4240        //Shift-JIS → Unicode
    4341        int size = MultiByteToWideChar(
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Namespace.cpp

    r217 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/BasicFixed.h>
    4 #include <jenga/include/smoothie/Smoothie.h>
    5 #include <jenga/include/smoothie/SmoothieException.h>
    62
    73#include <Namespace.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/NamespaceSupporter.cpp

    r402 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/SmoothieException.h>
    42
    53#include <Compiler.h>
     
    4846        else if( source[i] == 1 && source[i+1] == ESC_ENDNAMESPACE ){
    4947            if( namespaceScopes.size() <= 0 ){
    50                 SmoothieException::Throw( 12, "End Namespace", i );
     48                SetError( 12, "End Namespace", i );
    5149                isSuccessful = false;
    5250            }
     
    6159
    6260    if( namespaceScopes.size() > 0 ){
    63         SmoothieException::Throw( 63 );
     61        SetError( 63, NULL, cp );
    6462        isSuccessful = false;
    6563    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/ObjectModule.cpp

    r404 r461  
    1818
    1919#include "../common.h"
     20#include "../BasicFixed.h"
    2021
    2122
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp

    r447 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <Compiler.h>
     
    251248
    252249            if( type.IsNull() ){
    253                 SmoothieException::Throw(3,temporary,nowLine);
     250                SetError(3,temporary,nowLine);
    254251                type.SetBasicType( DEF_PTR_VOID );
    255252            }
     
    328325        if(sw){
    329326            //配列パラメータ
    330             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     327            if( isRef == false ) SetError(29,NULL,nowLine);
    331328            isArray = true;
    332329
     
    392389
    393390            if( type.IsNull() ){
    394                 SmoothieException::Throw(3,temporary,nowLine);
     391                SetError(3,temporary,nowLine);
    395392                type.SetBasicType( DEF_PTR_VOID );
    396393            }
     
    405402        else{
    406403            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    407             SmoothieException::Throw(-103,temporary,nowLine);
     404            SetError(-103,temporary,nowLine);
    408405        }
    409406
     
    655652    UserProc *pUserProc = new UserProc( namespaceScopes, importedNamespaces, temporary, kind, isMacro, isCdecl, isExport, (id_base++) );
    656653    pUserProc->SetParentClass( pobj_c );
    657     if( Smoothie::isFullCompile ){
    658         // すべての関数・メソッドをコンパイルする
    659         pUserProc->Using();
    660     }
    661654
    662655    // 親インターフェイスをセット
     
    772765        if(sw){
    773766            //配列パラメータ
    774             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     767            if( isRef == false ) SetError(29,NULL,nowLine);
    775768            isArray = true;
    776769
     
    818811
    819812            if( type.IsNull() ){
    820                 SmoothieException::Throw(3,temporary,nowLine);
     813                SetError(3,temporary,nowLine);
    821814                type.SetBasicType( DEF_PTR_VOID );
    822815            }
     
    824817        else{
    825818            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    826             SmoothieException::Throw(-103,temporary,nowLine);
     819            SetError(-103,temporary,nowLine);
    827820        }
    828821
     
    870863                }
    871864                compiler.StringToType( temporary, this->returnType );
    872                 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine);
     865                if( this->returnType.IsNull() ) SetError(3,temporary,nowLine);
    873866
    874867                sw_as=1;
     
    10661059        if(sw){
    10671060            //配列パラメータ
    1068             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     1061            if( isRef == false ) SetError(29,NULL,nowLine);
    10691062            isArray = true;
    10701063
     
    11111104
    11121105            if( type.IsNull() ){
    1113                 SmoothieException::Throw(3,temporary,nowLine);
     1106                SetError(3,temporary,nowLine);
    11141107                type.SetBasicType( DEF_PTR_VOID );
    11151108            }
     
    11171110        else{
    11181111            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    1119             SmoothieException::Throw(-103,temporary,nowLine);
     1112            SetError(-103,temporary,nowLine);
    11201113        }
    11211114
     
    11631156                }
    11641157                compiler.StringToType( temporary, this->returnType );
    1165                 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine);
     1158                if( this->returnType.IsNull() ) SetError(3,temporary,nowLine);
    11661159
    11671160                sw_as=1;
     
    11811174        if( this->ReturnType().IsNull() ){
    11821175            // 戻り値がない
    1183             SmoothieException::Throw(26,this->GetName(),nowLine);
     1176            SetError(26,this->GetName(),nowLine);
    11841177        }
    11851178    }
     
    11871180        if( !this->ReturnType().IsNull() ){
    11881181            // Sub定義なのに、戻り値がある
    1189             SmoothieException::Throw(38,this->GetName(),nowLine);
     1182            SetError(38,this->GetName(),nowLine);
    11901183        }
    11911184    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp

    r459 r461  
    55#include <jenga/include/common/Directory.h>
    66#include <jenga/include/common/Path.h>
    7 
    8 #include <jenga/include/smoothie/Smoothie.h>
    9 #include <jenga/include/smoothie/BasicFixed.h>
    10 #include <jenga/include/smoothie/SmoothieException.h>
    117
    128#include <Source.h>
     
    130126    }
    131127
    132     if( Smoothie::IsUnicode() )
     128    if( compiler.IsUnicode() )
    133129    {
    134130        add( "UNICODE" );
     
    682678                if( !source.ReadFile_InIncludeDirective( temporary ) ){
    683679                    sprintf(temp2,"インクルードファイル \"%s\" をオープンできません",temporary);
    684                     SmoothieException::Throw(-1,temp2,i);
     680                    SetError(-1,temp2,i);
    685681                    break;
    686682                }
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Symbol.cpp

    r402 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/BasicFixed.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp

    r448 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <Class.h>
     
    119116    }
    120117
    121     SmoothieException::Throw();
     118    SetError();
    122119
    123120    return 0;
     
    222219    {
    223220        if( !pClass ){
    224             SmoothieException::Throw();
     221            SetError();
    225222            return 0;
    226223        }
     
    235232    }
    236233
    237     SmoothieException::Throw();
     234    SetError();
    238235    return 0;
    239236}
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp

    r402 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <TypeDef.h>
     
    1310{
    1411    if( !compiler.StringToType( baseName, baseType ) ){
    15         SmoothieException::Throw(3, baseName, nowLine );
     12        SetError(3, baseName, nowLine );
    1613        return;
    1714    }
     
    9087
    9188    if(expression[i]!='='){
    92         SmoothieException::Throw(10,"TypeDef",nowLine);
     89        SetError(10,"TypeDef",nowLine);
    9390        return;
    9491    }
     
    10198        if(temporary[i]=='\0') break;
    10299        if( !( IsVariableChar( temporary[i], true) ) ){
    103             SmoothieException::Throw(10,"TypeDef",nowLine);
     100            SetError(10,"TypeDef",nowLine);
    104101            return;
    105102        }
     
    110107        //関数ポインタ
    111108        if(pTemp[3]!='('){
    112             SmoothieException::Throw(10,"TypeDef",nowLine);
     109            SetError(10,"TypeDef",nowLine);
    113110            return;
    114111        }
     
    121118            if( !( IsVariableChar( pTemp[i], true) ) )
    122119            {
    123                 SmoothieException::Throw(10,"TypeDef",nowLine);
     120                SetError(10,"TypeDef",nowLine);
    124121                return;
    125122            }
     
    173170        else if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENDNAMESPACE ){
    174171            if( namespaceScopes.size() <= 0 ){
    175                 SmoothieException::Throw(12, "End Namespace", i );
     172                SetError(12, "End Namespace", i );
    176173            }
    177174            else{
     
    192189            if( !compiler.GetNamespaceSupporter().ImportsNamespace( temporary ) )
    193190            {
    194                 SmoothieException::Throw(64,temporary,i );
     191                SetError(64,temporary,i );
    195192            }
    196193
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Variable.cpp

    r392 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    42
    53#include <Compiler.h>
  • trunk/ab5.0/abdev/ProjectEditor/Common.h

    r450 r461  
    3333#include "BREGEXP.H"
    3434#include "../BasicCompiler32/CommandValue.h"
    35 #include "../../jenga/include/smoothie/BasicFixed.h"
     35#include "../BasicCompiler_Common/BasicFixed.h"
    3636
    3737
  • trunk/ab5.0/abdev/abcompiler32.sln

    r288 r461  
    11
    22Microsoft Visual Studio Solution File, Format Version 9.00
    3 # Visual C++ Express 2005
     3# Visual Studio 2005
    44Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "..\jenga\projects\common\common.vcproj", "{F01805B6-65B4-4708-88F4-A5E07DEA9FBD}"
    55EndProject
    66Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BasicCompiler32", "BasicCompiler32\BasicCompiler.vcproj", "{11F0E9AB-EAEC-4616-A9DD-838073342CBB}"
    77    ProjectSection(ProjectDependencies) = postProject
    8         {996D6B55-6503-4427-84AB-351784EAFB71} = {996D6B55-6503-4427-84AB-351784EAFB71}
    98        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD} = {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}
    109    EndProjectSection
    1110EndProject
    12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "smoothie", "..\jenga\projects\smoothie\smoothie.vcproj", "{996D6B55-6503-4427-84AB-351784EAFB71}"
     11Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProjectEditor", "ProjectEditor\ProjectEditor.vcproj", "{DC1B787E-510F-4F7D-8F9A-182600904D83}"
    1312EndProject
    1413Global
    1514    GlobalSection(SolutionConfigurationPlatforms) = preSolution
     15        AB_Debug|Win32 = AB_Debug|Win32
     16        AB_Release|Win32 = AB_Release|Win32
    1617        Debug|Win32 = Debug|Win32
     18        English_Rel|Win32 = English_Rel|Win32
    1719        Release|Win32 = Release|Win32
     20        TheText_Debug|Win32 = TheText_Debug|Win32
     21        TheText_Release|Win32 = TheText_Release|Win32
     22        TheText_Share_Debug|Win32 = TheText_Share_Debug|Win32
     23        TheText_Share_Release|Win32 = TheText_Share_Release|Win32
    1824    EndGlobalSection
    1925    GlobalSection(ProjectConfigurationPlatforms) = postSolution
     26        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Debug|Win32.ActiveCfg = Release(x86)|Win32
     27        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Debug|Win32.Build.0 = Release(x86)|Win32
     28        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|Win32.ActiveCfg = Release(x86)|Win32
     29        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.AB_Release|Win32.Build.0 = Release(x86)|Win32
    2030        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.ActiveCfg = Debug(x86)|Win32
    2131        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.Build.0 = Debug(x86)|Win32
     32        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.English_Rel|Win32.ActiveCfg = Release(x86)|Win32
     33        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.English_Rel|Win32.Build.0 = Release(x86)|Win32
    2234        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.ActiveCfg = Release(x86)|Win32
    2335        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.Build.0 = Release(x86)|Win32
     36        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Debug|Win32.ActiveCfg = Release(x86)|Win32
     37        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Debug|Win32.Build.0 = Release(x86)|Win32
     38        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Release|Win32.ActiveCfg = Release(x86)|Win32
     39        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Release|Win32.Build.0 = Release(x86)|Win32
     40        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Share_Debug|Win32.ActiveCfg = Release(x86)|Win32
     41        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Share_Debug|Win32.Build.0 = Release(x86)|Win32
     42        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Share_Release|Win32.ActiveCfg = Release(x86)|Win32
     43        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Share_Release|Win32.Build.0 = Release(x86)|Win32
     44        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Debug|Win32.ActiveCfg = Debug|Win32
     45        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Debug|Win32.Build.0 = Debug|Win32
     46        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|Win32.ActiveCfg = Release|Win32
     47        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.AB_Release|Win32.Build.0 = Release|Win32
    2448        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Debug|Win32.ActiveCfg = Debug|Win32
    2549        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Debug|Win32.Build.0 = Debug|Win32
     50        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.English_Rel|Win32.ActiveCfg = Release|Win32
     51        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.English_Rel|Win32.Build.0 = Release|Win32
    2652        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Release|Win32.ActiveCfg = Release|Win32
    2753        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.Release|Win32.Build.0 = Release|Win32
    28         {996D6B55-6503-4427-84AB-351784EAFB71}.Debug|Win32.ActiveCfg = Debug(x86)|Win32
    29         {996D6B55-6503-4427-84AB-351784EAFB71}.Debug|Win32.Build.0 = Debug(x86)|Win32
    30         {996D6B55-6503-4427-84AB-351784EAFB71}.Release|Win32.ActiveCfg = Release(x86)|Win32
    31         {996D6B55-6503-4427-84AB-351784EAFB71}.Release|Win32.Build.0 = Release(x86)|Win32
     54        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Debug|Win32.ActiveCfg = Debug|Win32
     55        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Debug|Win32.Build.0 = Debug|Win32
     56        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Release|Win32.ActiveCfg = Release|Win32
     57        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Release|Win32.Build.0 = Release|Win32
     58        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Share_Debug|Win32.ActiveCfg = Debug|Win32
     59        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Share_Debug|Win32.Build.0 = Debug|Win32
     60        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Share_Release|Win32.ActiveCfg = Release|Win32
     61        {11F0E9AB-EAEC-4616-A9DD-838073342CBB}.TheText_Share_Release|Win32.Build.0 = Release|Win32
     62        {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Debug|Win32.ActiveCfg = AB_Debug|Win32
     63        {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Debug|Win32.Build.0 = AB_Debug|Win32
     64        {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|Win32.ActiveCfg = AB_Release|Win32
     65        {DC1B787E-510F-4F7D-8F9A-182600904D83}.AB_Release|Win32.Build.0 = AB_Release|Win32
     66        {DC1B787E-510F-4F7D-8F9A-182600904D83}.Debug|Win32.ActiveCfg = TheText_Debug|Win32
     67        {DC1B787E-510F-4F7D-8F9A-182600904D83}.Debug|Win32.Build.0 = TheText_Debug|Win32
     68        {DC1B787E-510F-4F7D-8F9A-182600904D83}.English_Rel|Win32.ActiveCfg = English_Rel|Win32
     69        {DC1B787E-510F-4F7D-8F9A-182600904D83}.English_Rel|Win32.Build.0 = English_Rel|Win32
     70        {DC1B787E-510F-4F7D-8F9A-182600904D83}.Release|Win32.ActiveCfg = AB_Release|Win32
     71        {DC1B787E-510F-4F7D-8F9A-182600904D83}.Release|Win32.Build.0 = AB_Release|Win32
     72        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Debug|Win32.ActiveCfg = TheText_Debug|Win32
     73        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Debug|Win32.Build.0 = TheText_Debug|Win32
     74        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Release|Win32.ActiveCfg = TheText_Release|Win32
     75        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Release|Win32.Build.0 = TheText_Release|Win32
     76        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Share_Debug|Win32.ActiveCfg = TheText_Share_Debug|Win32
     77        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Share_Debug|Win32.Build.0 = TheText_Share_Debug|Win32
     78        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Share_Release|Win32.ActiveCfg = TheText_Share_Release|Win32
     79        {DC1B787E-510F-4F7D-8F9A-182600904D83}.TheText_Share_Release|Win32.Build.0 = TheText_Share_Release|Win32
    3280    EndGlobalSection
    3381    GlobalSection(SolutionProperties) = preSolution
  • trunk/ab5.0/abdev/abcompiler64.sln

    r161 r461  
    11
    22Microsoft Visual Studio Solution File, Format Version 9.00
    3 # Visual C++ Express 2005
     3# Visual Studio 2005
    44Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BasicCompiler", "BasicCompiler64\BasicCompiler.vcproj", "{864B921B-423B-4F9E-9E6B-31B15968EDF9}"
    55EndProject
    66Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "..\jenga\projects\common\common.vcproj", "{F01805B6-65B4-4708-88F4-A5E07DEA9FBD}"
    7 EndProject
    8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "smoothie", "..\jenga\projects\smoothie\smoothie.vcproj", "{996D6B55-6503-4427-84AB-351784EAFB71}"
    97EndProject
    108Global
     
    2220        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.ActiveCfg = Release(amd64)|Win32
    2321        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.Build.0 = Release(amd64)|Win32
    24         {996D6B55-6503-4427-84AB-351784EAFB71}.Debug|Win32.ActiveCfg = Debug(amd64)|Win32
    25         {996D6B55-6503-4427-84AB-351784EAFB71}.Debug|Win32.Build.0 = Debug(amd64)|Win32
    26         {996D6B55-6503-4427-84AB-351784EAFB71}.Release|Win32.ActiveCfg = Release(amd64)|Win32
    27         {996D6B55-6503-4427-84AB-351784EAFB71}.Release|Win32.Build.0 = Release(amd64)|Win32
    2822    EndGlobalSection
    2923    GlobalSection(SolutionProperties) = preSolution
Note: See TracChangeset for help on using the changeset viewer.