Changeset 360 in dev
- Timestamp:
- Nov 9, 2007, 8:52:10 AM (17 years ago)
- Location:
- trunk/jenga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/LexicalAnalysis.h
r341 r360 34 34 bool SplitMemberName( const char *desc, char *object, char *member, ReferenceKind &refType ); 35 35 bool SplitMemberName( const char *desc, char *object, char *member ); 36 void SplitSyntacticForAs( const char *src, char *varName, char *typeName); 36 37 void GetCalcName(int idCalc,char *name); 37 38 BYTE ToCalcId( const char *name ); -
trunk/jenga/src/smoothie/LexicalAnalysis.cpp
r341 r360 301 301 ReferenceKind dummyRefType; 302 302 return SplitMemberName( desc, object, member, dummyRefType ); 303 } 304 305 void SplitSyntacticForAs( const char *src, char *varName, char *typeName) 306 { 307 int i = 0; 308 for( ; ; i++ ) 309 { 310 if( src[i] == '\0' || src[i] == 1 && src[i+1] == ESC_AS ) 311 { 312 varName[i] = 0; 313 break; 314 } 315 varName[i] = src[i]; 316 } 317 318 if( src[i] ) 319 { 320 i += 2; 321 lstrcpy( typeName, src + i ); 322 } 323 else 324 { 325 typeName[i] = 0; 326 } 303 327 } 304 328
Note:
See TracChangeset
for help on using the changeset viewer.