Changeset 96 in dev for BasicCompiler_Common/TypeDef.cpp
- Timestamp:
- Apr 15, 2007, 2:48:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/TypeDef.cpp
r88 r96 22 22 TypeDef typeDef( newName, baseName ); 23 23 this->push_back( typeDef ); 24 25 26 /*27 TODO: 消す128 ////////////////////////29 // 循環参照をチェック30 ////////////////////////31 32 int i;33 string tempName = newName;34 35 while(1){36 i=GetIndex( tempName );37 if(i==-1) break;38 39 if( (*this)[i].baseName == newName ){40 //循環エラー41 extern int cp;42 SetError(124,NULL,cp);43 44 //不明な型として、Long型を指定しておく45 (*this)[i].baseName = "Long";46 47 break;48 }49 50 tempName = (*this)[i].baseName;51 }*/52 24 } 53 25 int TypeDefCollection::GetIndex( const string &typeName ) const{
Note:
See TracChangeset
for help on using the changeset viewer.