Changeset 5d125e4 for src/Parser/ParseNode.cc
- Timestamp:
- Jul 15, 2016, 10:16:47 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 873ffb7
- Parents:
- 5ed9061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.cc
r5ed9061 r5d125e4 10 10 // Created On : Sat May 16 13:26:29 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:19:57201613 // Update Count : 5312 // Last Modified On : Fri Jul 15 18:49:25 2016 13 // Update Count : 62 14 14 // 15 15 … … 53 53 size_t last = value.length() - 1; // last character of constant 54 54 55 if ( value[0] == '0' ) { // octal constant ?55 if ( value[0] == '0' ) { // octal/hex constant ? 56 56 dec = false; 57 57 if ( last != 0 && checkX( value[1] ) ) { // hex constant ? 58 58 sscanf( (char *)value.c_str(), "%llx", &v ); 59 59 //printf( "%llx %llu\n", v, v ); 60 } else { 60 } else { // octal constant 61 61 sscanf( (char *)value.c_str(), "%llo", &v ); 62 62 //printf( "%llo %llu\n", v, v ); … … 110 110 case ConstantNode::Float: 111 111 { 112 //long double v; 112 113 static const BasicType::Kind kind[2][3] = { 113 114 { BasicType::Float, BasicType::Double, BasicType::LongDouble }, … … 123 124 last -= 1; // backup one character 124 125 } // if 126 127 //sscanf( (char *)value.c_str(), "%Lf", &v ); 128 //printf( "%s %24.22Lf %Lf\n", value.c_str(), v, v ); 129 125 130 if ( checkF( value[last] ) ) { // float ? 126 131 size = 0;
Note: See TracChangeset
for help on using the changeset viewer.