Changeset 107 in dev for BasicCompiler_Common/src
- Timestamp:
- May 6, 2007, 3:17:56 PM (18 years ago)
- Location:
- BasicCompiler_Common/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/src/Namespace.cpp
r105 r107 21 21 } 22 22 23 bool NamespaceScopes::IsImported() const 24 { 25 BOOST_FOREACH( const NamespaceScopes &namespaceScopes, Smoothie::Meta::importedNamespaces ){ 26 if( this->IsEqual( namespaceScopes ) ){ 27 return true; 28 } 29 } 30 return false; 31 } 23 32 bool NamespaceScopes::IsLiving() const 24 33 { … … 90 99 lstrcpy( simpleName, fullName + lstrlen( namespaceStr ) + dotLength ); 91 100 } 101 void NamespaceScopesCollection::Imports( const string &namespaceStr ){ 102 NamespaceScopes namespaceScopes( namespaceStr ); 103 if( !Smoothie::Meta::namespaceScopesCollection.IsExist( namespaceScopes ) ){ 104 SetError(64,namespaceStr.c_str(),cp ); 105 return; 106 } 107 108 this->push_back( namespaceScopes ); 109 } 92 110 bool NamespaceScopesCollection::CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection ) 93 111 { -
BasicCompiler_Common/src/Smoothie.cpp
r105 r107 2 2 3 3 string Smoothie::Logger::log = ""; 4 5 void Smoothie::Logger::Put( const string &text ) 6 { 7 //#ifdef _DEBUG 8 log += text + "\r\n"; 9 10 { 11 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app ); 12 ofs << text << endl; 13 ofs.close(); 14 } 15 //#endif 16 } 4 17 5 18 BasicSource Smoothie::Lexical::source; … … 9 22 vector<ProcPointer *> Smoothie::Meta::procPointers; 10 23 NamespaceScopesCollection Smoothie::Meta::namespaceScopesCollection; 24 NamespaceScopesCollection Smoothie::Meta::importedNamespaces;
Note:
See TracChangeset
for help on using the changeset viewer.