Changeset 131 in dev for BasicCompiler_Common/LoopRefCheck.cpp
- Timestamp:
- Jun 4, 2007, 7:49:17 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/LoopRefCheck.cpp
r90 r131 24 24 init(); 25 25 } 26 void CLoopRefCheck::add(c har *lpszInheritsClass){26 void CLoopRefCheck::add(const char *lpszInheritsClass){ 27 27 names=(char **)HeapReAlloc(hHeap,0,names,(num+1)*sizeof(char *)); 28 28 names[num]=(char *)HeapAlloc(hHeap,0,lstrlen(lpszInheritsClass)+1); … … 30 30 num++; 31 31 } 32 void CLoopRefCheck::del(c har *lpszInheritsClass){32 void CLoopRefCheck::del(const char *lpszInheritsClass){ 33 33 int i; 34 34 for(i=0;i<num;i++){ … … 50 50 int i; 51 51 for(i=0;i<num;i++){ 52 if(lstrcmp(names[i],inheritsClass.name)==0) return 1; 52 if( inheritsClass.GetName() == names[i] ){ 53 return 1; 54 } 53 55 } 54 56 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.