Changeset 209 in dev for trunk/abdev/BasicCompiler_Common/hash.cpp
- Timestamp:
- Jul 13, 2007, 4:22:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/hash.cpp
r206 r209 23 23 } 24 24 25 DllProc *GetDeclareHash(c har *fullName){26 char ObjName[VN_SIZE]; //オブジェクト変数27 char NestMember[VN_SIZE]; //入れ子メンバ28 bool isObjectMember = SplitMemberName( fullName, ObjName, NestMember);25 DllProc *GetDeclareHash(const char *fullName){ 26 char namespaceStr[VN_SIZE]; //オブジェクト変数 27 char simpleName[VN_SIZE]; //入れ子メンバ 28 bool isObjectMember = SplitMemberName( fullName, namespaceStr, simpleName ); 29 29 30 // ハッシュ値を取得31 int key;32 key=hash_default(NestMember);30 /////////////////////////// 31 // グローバル関数を検索 32 /////////////////////////// 33 33 34 //格納位置を取得 35 extern DllProc **ppDeclareHash; 36 DllProc *pDllProc; 37 pDllProc=ppDeclareHash[key]; 34 // ハッシュ値を取得 35 DllProc *pDllProc = compiler.GetMeta().GetDllProcs().GetHashArrayElement( simpleName ); 38 36 while(pDllProc){ 39 // TODO: Declare名前空間対応40 37 if( pDllProc->IsEqualSymbol( fullName ) ){ 41 break;38 return pDllProc; 42 39 } 43 40 44 pDllProc=pDllProc-> pNextData;41 pDllProc=pDllProc->GetChainNext(); 45 42 } 46 43 47 return pDllProc;44 return NULL; 48 45 } 49 46
Note:
See TracChangeset
for help on using the changeset viewer.