Changeset 828 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/hash.cpp
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/BasicCompiler_Common/hash.cpp
r598 r828 13 13 using namespace ActiveBasic::Compiler; 14 14 15 int hash_default(const char *name){16 int key;17 18 for(key=0;*name!='\0';name++){19 key=((key<<8)+ *name )%MAX_HASH;20 }21 22 return key;23 }24 25 15 DllProc *GetDeclareHash(const char *fullName){ 26 16 char namespaceStr[VN_SIZE]; //オブジェクト変数 … … 32 22 /////////////////////////// 33 23 24 auto const s = LexicalAnalyzer::FullNameToSymbol( fullName ); 25 34 26 // ハッシュ値を取得 35 DllProc *pDllProc = compiler.GetObjectModule().meta.GetDllProcs().GetHashArrayElement( simpleName ); 36 while(pDllProc){ 37 if( pDllProc->IsEqualSymbol( LexicalAnalyzer::FullNameToSymbol( fullName ) ) ){ 27 foreach (auto pDllProc, compiler.GetObjectModule().meta.GetDllProcs().GetHashArrayElement(simpleName)) 28 { 29 if( pDllProc->IsEqualSymbol( s ) ) 30 { 38 31 return pDllProc; 39 32 } 40 41 pDllProc=pDllProc->GetChainNext();42 33 } 43 34
Note:
See TracChangeset
for help on using the changeset viewer.