Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r5f2f2d7 r68cd1ce  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jun  7 08:36:44 2015
    13 // Update Count     : 12
     12// Last Modified On : Sat Jun 13 08:12:20 2015
     13// Update Count     : 14
    1414//
    1515
     
    2121#include "utility.h"
    2222
    23 FunctionDecl::FunctionDecl( const std::string &name, StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline )
     23FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline )
    2424                : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) {
    2525        // this is a brazen hack to force the function "main" to have C linkage
     
    6060                os << "inline ";
    6161        } // if
    62         if ( get_storageClass() != NoStorageClass ) {
    63                 os << storageClassName[ get_storageClass() ] << ' ';
     62        if ( get_storageClass() != DeclarationNode::NoStorageClass ) {
     63                os << DeclarationNode::storageName[ get_storageClass() ] << ' ';
    6464        } // if
    6565        if ( get_type() ) {
     
    9696                os << "inline ";
    9797        } // if
    98         if ( get_storageClass() != NoStorageClass ) {
    99                 os << storageClassName[ get_storageClass() ] << ' ';
     98        if ( get_storageClass() != DeclarationNode::NoStorageClass ) {
     99                os << DeclarationNode::storageName[ get_storageClass() ] << ' ';
    100100        } // if
    101101        if ( get_type() ) {
Note: See TracChangeset for help on using the changeset viewer.