Ignore:
Timestamp:
Jul 15, 2016, 10:16:47 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

start code allowing structures to no fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.cc

    r5ed9061 r5d125e4  
    1010// Created On       : Sat May 16 13:26:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 17:19:57 2016
    13 // Update Count     : 53
     12// Last Modified On : Fri Jul 15 18:49:25 2016
     13// Update Count     : 62
    1414//
    1515
     
    5353                        size_t last = value.length() - 1;                       // last character of constant
    5454
    55                         if ( value[0] == '0' ) {                                        // octal constant ?
     55                        if ( value[0] == '0' ) {                                        // octal/hex constant ?
    5656                                dec = false;
    5757                                if ( last != 0 && checkX( value[1] ) ) { // hex constant ?
    5858                                        sscanf( (char *)value.c_str(), "%llx", &v );
    5959                                        //printf( "%llx %llu\n", v, v );
    60                                 } else {
     60                                } else {                                                                // octal constant
    6161                                        sscanf( (char *)value.c_str(), "%llo", &v );
    6262                                        //printf( "%llo %llu\n", v, v );
     
    110110          case ConstantNode::Float:
    111111                {
     112                        //long double v;
    112113                        static const BasicType::Kind kind[2][3] = {
    113114                                { BasicType::Float, BasicType::Double, BasicType::LongDouble },
     
    123124                                last -= 1;                                                              // backup one character
    124125                        } // if
     126
     127                        //sscanf( (char *)value.c_str(), "%Lf", &v );
     128                        //printf( "%s %24.22Lf %Lf\n", value.c_str(), v, v );
     129
    125130                        if ( checkF( value[last] ) ) {                          // float ?
    126131                                size = 0;
Note: See TracChangeset for help on using the changeset viewer.