Changeset dbe8e31c for src/Parser
- Timestamp:
- Jul 12, 2020, 10:43:59 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ccb776b
- Parents:
- a3d3efc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
ra3d3efc rdbe8e31c 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jul 11 16:44:49202013 // Update Count : 103 412 // Last Modified On : Sun Jul 12 08:15:12 2020 13 // Update Count : 1039 14 14 // 15 15 … … 185 185 186 186 // Cannot be just "0"/"1"; sscanf stops at the suffix, if any; value goes over the wall => always generate 187 188 #if __SIZEOF_POINTER__ == 8 // 64-bit mode 189 if ( type == 5 ) SemanticError( yylloc, "int128 constant is not supported on this target " + str ); 190 #endif // 64-bit mode 187 191 188 192 if ( str[0] == '0' ) { // radix character ? … … 215 219 if ( type < 5 ) { // not L128 ? 216 220 sscanf( (char *)str.c_str(), "%llo", &v ); 221 #if __SIZEOF_POINTER__ == 8 // 64-bit mode 217 222 } else { // octal int128 constant 218 223 unsigned int len = str.length(); … … 240 245 str = buf; 241 246 } // if 247 #endif // 64-bit mode 242 248 } // if 243 249 //printf( "%#llo %llu\n", v, v ); … … 246 252 if ( type < 5 ) { // not L128 ? 247 253 sscanf( (char *)str.c_str(), "%llu", &v ); 254 #if __SIZEOF_POINTER__ == 8 // 64-bit mode 248 255 } else { // decimal int128 constant 249 256 #define P10_UINT64 10'000'000'000'000'000'000ULL // 19 zeroes … … 273 280 str = buf; 274 281 } // if 282 #endif // 64-bit mode 275 283 } // if 276 284 //printf( "%llu\n", v );
Note: See TracChangeset
for help on using the changeset viewer.