Changeset 47 in dev for BasicCompiler_Common/Enum.cpp


Ignore:
Timestamp:
Feb 10, 2007, 3:12:04 AM (18 years ago)
Author:
dai_9181
Message:

列挙子の比較演算が正常に行えないバグを修正。
クラス名と同名のグローバル関数を定義できないバグを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Enum.cpp

    r29 r47  
    161161        lstrcpy(buffer+length,"\tEnd Sub\n");
    162162        length+=lstrlen(buffer+length);
     163        sprintf(buffer+length,"\tSub %s(ByRef e As %s)\n",parent->TypeName,parent->TypeName);
     164        length+=lstrlen(buffer+length);
     165        lstrcpy(buffer+length,"\t\tEnumBase(e.m_Value)\n");
     166        length+=lstrlen(buffer+length);
     167        lstrcpy(buffer+length,"\tEnd Sub\n");
     168        length+=lstrlen(buffer+length);
    163169        sprintf(buffer+length,"\tSub %s(value As Long)\n",parent->TypeName);
    164170        length+=lstrlen(buffer+length);
     
    233239        length+=lstrlen(buffer+length);
    234240
     241        sprintf(buffer+length,"\tFunction Operator== (ByRef e As %s) As Boolean\n",parent->TypeName);
     242        length+=lstrlen(buffer+length);
     243        lstrcpy(buffer+length,"\t\tReturn ( e.m_Value = m_Value )\n");
     244        length+=lstrlen(buffer+length);
     245        lstrcpy(buffer+length,"\tEnd Function\n");
     246        length+=lstrlen(buffer+length);
     247
    235248        lstrcpy(buffer+length,"End Class\n");
    236249        length+=lstrlen(buffer+length);
Note: See TracChangeset for help on using the changeset viewer.