Changeset 64 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Mar 8, 2007, 2:49:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r55 r64 524 524 StrPtr[pnum][i2]=0; 525 525 526 type[pnum]=DEF_PTR_ BYTE;526 type[pnum]=DEF_PTR_CHAR; 527 527 before_index[pnum]=LITERAL_STRING; 528 528 } … … 538 538 StrPtr[pnum][i2]=0; 539 539 540 type[pnum]=DEF_PTR_ BYTE;540 type[pnum]=DEF_PTR_CHAR; 541 541 before_index[pnum]=LITERAL_STRING; 542 542 } 543 else if(IsVariableTopChar(Parms[0])||Parms[0]=='*' ){543 else if(IsVariableTopChar(Parms[0])||Parms[0]=='*'||(Parms[0]=='.'&&IsVariableTopChar(Parms[1]))){ 544 544 if(bDebuggingWatchList){ 545 545 ////////////////////////// … … 1187 1187 return -1; 1188 1188 } 1189 BOOL IsStringObjectType(TYPEINFO *pTypeInfo){1190 if( pTypeInfo->type==DEF_OBJECT){1191 if(lstrcmp( pTypeInfo->u.pobj_Class->name,"String")==0){1189 bool IsStringObjectType(const TYPEINFO &TypeInfo){ 1190 if(TypeInfo.type==DEF_OBJECT){ 1191 if(lstrcmp(TypeInfo.u.pobj_Class->name,"String")==0){ 1192 1192 return 1; 1193 1193 } … … 1209 1209 if(psi->ParmNum==2){ 1210 1210 TYPEINFO TypeInfo={psi->pParmInfo[1].type,psi->pParmInfo[1].u.index}; 1211 if(IsStringObjectType( &TypeInfo)){1211 if(IsStringObjectType( TypeInfo )){ 1212 1212 bRet=1; 1213 1213 goto finish; … … 1277 1277 TypeInfo.type=pdi->ReturnType; 1278 1278 TypeInfo.u.lpIndex=pdi->u.ReturnIndex; 1279 if(IsStringObjectType( &TypeInfo)) return 1;1279 if(IsStringObjectType( TypeInfo )) return 1; 1280 1280 return 0; 1281 1281 } … … 1287 1287 TypeInfo.type=psi->ReturnType; 1288 1288 TypeInfo.u.lpIndex=psi->u.ReturnIndex; 1289 if(IsStringObjectType( &TypeInfo)) return 1;1289 if(IsStringObjectType(TypeInfo)) return 1; 1290 1290 return 0; 1291 1291 }
Note:
See TracChangeset
for help on using the changeset viewer.