Changeset 322 in dev for trunk/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- Sep 24, 2007, 2:58:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r310 r322 957 957 958 958 bool isEnum = false; 959 bool isDelegate = false; 959 960 if( source[i] == 1 && source[i+1] == ESC_ENUM ){ 960 961 // 列挙型の場合 961 962 isEnum = true; 962 963 963 i+=2; 964 i += 2; 965 } 966 else if( source[i] == 1 && source[i+1] == ESC_DELEGATE ) 967 { 968 // デリゲートの場合 969 isDelegate = true; 970 971 i += 2; 964 972 } 965 973 … … 976 984 if( pClass ){ 977 985 if( source[nowLine+1] == ESC_CLASS ){ 978 if( isEnum ){ 986 if( isEnum ) 987 { 979 988 pClass->SetClassType( CClass::Enum ); 989 } 990 else if( isDelegate ) 991 { 992 pClass->SetClassType( CClass::Delegate ); 980 993 } 981 994 else{ … … 1310 1323 } 1311 1324 1312 if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENUM ){ 1325 if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENUM ) 1326 { 1313 1327 // 列挙型の場合 1314 i+=2; 1328 i += 2; 1329 } 1330 else if( basbuf[i] == 1 && basbuf[i+1] == ESC_DELEGATE ) 1331 { 1332 // デリゲートの場合 1333 i += 2; 1315 1334 } 1316 1335
Note:
See TracChangeset
for help on using the changeset viewer.