Changeset 50 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Feb 10, 2007, 5:44:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r49 r50 1199 1199 BOOL bRet=0; 1200 1200 1201 SUBINFO **ppsi; 1202 int num; 1203 ppsi=pobj_c->GetOperatorSubInfo(CALC_SUBSITUATION,num); 1204 if(num==0){ 1201 std::vector<SUBINFO *> subs; 1202 pobj_c->EnumMethod( CALC_SUBSITUATION, subs ); 1203 if( subs.size() == 0 ){ 1205 1204 bRet=0; 1206 1205 goto finish; 1207 1206 } 1208 1207 1209 int i; 1210 for(i=0;i<num;i++){ 1211 if(ppsi[i]->ParmNum==2){ 1212 TYPEINFO TypeInfo={ppsi[i]->pParmInfo[1].type,ppsi[i]->pParmInfo[1].u.index}; 1208 foreach( SUBINFO *psi, subs ){ 1209 if(psi->ParmNum==2){ 1210 TYPEINFO TypeInfo={psi->pParmInfo[1].type,psi->pParmInfo[1].u.index}; 1213 1211 if(IsStringObjectType(&TypeInfo)){ 1214 1212 bRet=1; … … 1219 1217 1220 1218 finish: 1221 HeapDefaultFree(ppsi);1222 1219 return bRet; 1223 1220 }
Note:
See TracChangeset
for help on using the changeset viewer.