Changeset 47 in dev for BasicCompiler_Common
- Timestamp:
- Feb 10, 2007, 3:12:04 AM (18 years ago)
- Location:
- BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Enum.cpp
r29 r47 161 161 lstrcpy(buffer+length,"\tEnd Sub\n"); 162 162 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); 163 169 sprintf(buffer+length,"\tSub %s(value As Long)\n",parent->TypeName); 164 170 length+=lstrlen(buffer+length); … … 233 239 length+=lstrlen(buffer+length); 234 240 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 235 248 lstrcpy(buffer+length,"End Class\n"); 236 249 length+=lstrlen(buffer+length); -
BasicCompiler_Common/hash.cpp
r46 r47 114 114 } 115 115 else{ 116 pobj_c=pobj_DBClass->check(ObjName); 117 if( pobj_c ){ 118 isStatic = true; 119 } 120 else{ 121 //"->"によってオブジェクトを指定する通常のメンバ関数呼び出し 122 int type = GetVarType(ObjName,(LONG_PTR *)&pobj_c,0); 123 if(!(NATURAL_TYPE(type)==DEF_OBJECT)) goto finish; 116 //"->"によってオブジェクトを指定する通常のメンバ関数呼び出し 117 int type = GetVarType(ObjName,(LONG_PTR *)&pobj_c,0); 118 if(!(NATURAL_TYPE(type)==DEF_OBJECT)){ 119 pobj_c=pobj_DBClass->check(ObjName); 120 if( pobj_c ){ 121 isStatic = true; 122 } 123 else{ 124 goto finish; 125 } 124 126 } 125 127 }
Note:
See TracChangeset
for help on using the changeset viewer.