Changeset 36 in dev for BasicCompiler_Common/Variable.cpp
- Timestamp:
- Jan 20, 2007, 4:55:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Variable.cpp
r34 r36 56 56 } 57 57 BOOL IsWholeNumberType(int type){ 58 return (IsNaturalWholeNumberType(type)||IsPtrType(type)); 58 return ( 59 IsNaturalWholeNumberType(type) 60 || IsPtrType(type) 61 || type == DEF_BOOLEAN 62 ); 59 63 } 60 64 BOOL IsRealNumberType(int type){ … … 132 136 else if(type==DEF_INTEGER||type==DEF_WORD) 133 137 return sizeof(WORD); 134 else if(type==DEF_CHAR||type==DEF_BYTE )138 else if(type==DEF_CHAR||type==DEF_BYTE || type == DEF_BOOLEAN) 135 139 return sizeof(BYTE); 136 140 … … 187 191 else if(lstrcmpi(TypeName,"Double")==0) return DEF_DOUBLE; 188 192 193 //bool型 194 else if( lstrcmpi( TypeName, "Boolean" ) == 0 ) return DEF_BOOLEAN; 195 189 196 //ポインタ型 190 197 //※VoidPtr型以外のポインタ型はTypeDef宣言により定義される … … 253 260 else if(type==DEF_SINGLE) lstrcpy(name,"Single"); 254 261 else if(type==DEF_DOUBLE) lstrcpy(name,"Double"); 262 263 //bool型 264 else if(type==DEF_BOOLEAN) lstrcpy(name,"Boolean"); 255 265 256 266 //オブジェクト
Note:
See TracChangeset
for help on using the changeset viewer.