Changeset 85 in dev for ProjectEditor/SubOperation.cpp


Ignore:
Timestamp:
Mar 30, 2007, 4:19:07 AM (17 years ago)
Author:
dai_9181
Message:

オブジェクトの循環参照を許容した(構造体はダメ)。
抽象クラスをメンバの型に指定できるようにした。
メンバがオブジェクトだったとき、自動的にNewするのをやめ、初期値としてNothingを指定するようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ProjectEditor/SubOperation.cpp

    r84 r85  
    167167    return 0;
    168168}
     169bool IsNumberChar( char c ){
     170    if(c>='0'&&c<='9'){
     171        return true;
     172    }
     173    return false;
     174}
    169175BOOL IsVariableChar(char c){
    170176    if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')||
     
    204210            int pos = (int)temp3 - (int)temp1;
    205211            if( pos == 0 ){
    206                 if( !IsVariableChar( temp1[len2] ) ){
     212                if( !( IsVariableTopChar( temp1[len2] ) || IsNumberChar( temp1[len2] ) ) ){
    207213                        break;
    208214                }
    209215            }
    210216            else{
    211                 if( !IsVariableChar( temp1[pos-1] )
    212                     && !IsVariableChar( temp1[pos+len2] ) ){
     217                if( !( IsVariableTopChar( temp1[pos-1] ) || IsNumberChar( temp1[pos-1] ) )
     218                    && !( IsVariableTopChar( temp1[pos+len2] ) || IsNumberChar( temp1[pos+len2] ) )
     219                    ){
    213220                        break;
    214221                }
     
    569576    else if(str[0]=='t'||str[0]=='T'){
    570577        if(lstrcmpi(str,"Then")==0) return -1;
     578        if(lstrcmpi(str,"This")==0) return -1;
    571579        if(lstrcmp(str,"True")==0) return -1;
    572580        if(lstrcmpi(str,"Type")==0) return COM_TYPE;
Note: See TracChangeset for help on using the changeset viewer.