Changeset 169 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Jun 18, 2007, 3:49:30 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Class.cpp
r159 r169 785 785 temporary[i2]=basbuf[i]; 786 786 } 787 importedNamespaces.Imports( temporary ); 787 if( !importedNamespaces.Imports( temporary ) ) 788 { 789 SetError(64,temporary,cp ); 790 } 788 791 789 792 continue; -
trunk/abdev/BasicCompiler_Common/Subroutine.cpp
r159 r169 720 720 temporary[i2]=basbuf[i]; 721 721 } 722 importedNamespaces.Imports( temporary ); 722 if( !importedNamespaces.Imports( temporary ) ) 723 { 724 SetError(64,temporary,cp ); 725 } 723 726 724 727 continue; -
trunk/abdev/BasicCompiler_Common/TypeDef.cpp
r143 r169 192 192 temporary[i2]=basbuf[i]; 193 193 } 194 importedNamespaces.Imports( temporary ); 194 if( !importedNamespaces.Imports( temporary ) ) 195 { 196 SetError(64,temporary,cp ); 197 } 195 198 196 199 continue; -
trunk/abdev/BasicCompiler_Common/include/Namespace.h
r107 r169 130 130 void SplitNamespace( const char *fullName, char *namespaceStr, char *simpleName ) const; 131 131 132 voidImports( const string &namespaceStr );132 bool Imports( const string &namespaceStr ); 133 133 134 134 static bool CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection ); -
trunk/abdev/BasicCompiler_Common/src/Namespace.cpp
r159 r169 101 101 lstrcpy( simpleName, fullName + lstrlen( namespaceStr ) + dotLength ); 102 102 } 103 voidNamespaceScopesCollection::Imports( const string &namespaceStr ){103 bool NamespaceScopesCollection::Imports( const string &namespaceStr ){ 104 104 NamespaceScopes namespaceScopes( namespaceStr ); 105 105 if( !Smoothie::meta.namespaceScopesCollection.IsExist( namespaceScopes ) ){ 106 SetError(64,namespaceStr.c_str(),cp ); 107 return; 106 return false; 108 107 } 109 108 110 109 this->push_back( namespaceScopes ); 110 111 return true; 111 112 } 112 113 bool NamespaceScopesCollection::CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection )
Note:
See TracChangeset
for help on using the changeset viewer.