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

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

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/src
Files:
1 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • 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.