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

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

Location:
trunk/ab5.0/abdev/BasicCompiler_Common
Files:
2 deleted
32 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.