Changeset 429 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Mar 11, 2008, 4:01:03 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/VariableOpe.cpp
r409 r429 290 290 291 291 292 BOOL GetVarFormatString( char *buffer,char *array,char *array2,char *NestMember,ReferenceKind &refType, bool *pIsParameterInBracket ){292 BOOL GetVarFormatString( char *buffer,char *array,char *array2,char *NestMember,ReferenceKind &refType, PareOrBracket *pPareOrBracket ){ 293 293 extern int cp; 294 294 int i,i2,i3; … … 318 318 } 319 319 320 if( p IsParameterInBracket )320 if( pPareOrBracket ) 321 321 { 322 322 // []なのか、()なのかを伝える 323 323 if( cPare_Open == '[' ) 324 324 { 325 *p IsParameterInBracket = true;325 *pPareOrBracket = Bracket; 326 326 } 327 327 else 328 328 { 329 *p IsParameterInBracket = false;329 *pPareOrBracket = Pare; 330 330 } 331 331 } -
trunk/abdev/BasicCompiler_Common/VariableOpe.h
r403 r429 3 3 class Type; 4 4 class CClass; 5 6 enum PareOrBracket 7 { 8 None = 0, 9 Pare, // (...) 10 Bracket, // [...] 11 }; 5 12 6 13 BOOL IsPtrType(int type); … … 16 23 Type GetStringTypeInfo(); 17 24 void GetWithName(char *buffer); 18 BOOL GetVarFormatString(char *buffer,char *array,char *array2,char *NestMember, ReferenceKind &refType, bool *pIsParameterInBracket = NULL );25 BOOL GetVarFormatString(char *buffer,char *array,char *array2,char *NestMember, ReferenceKind &refType, PareOrBracket *pPareOrBracket = NULL ); 19 26 void GetArrayElement( const char *buffer,char *variable,char *array_element); 20 27 BOOL CheckVarNameError(char *name,int nowLine);
Note:
See TracChangeset
for help on using the changeset viewer.