Ignore:
Timestamp:
Jan 7, 2015, 6:04:42 PM (9 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, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
0b8cd722
Parents:
d9a0e76
Message:

fixed restrict, fixed parameter copy, introduced name table for types, changed variable after to string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/DeclarationNode.cc

    rd9a0e76 r17cd4eb  
    1919/* these must remain in the same order as the corresponding DeclarationNode enumerations */
    2020const char *DeclarationNode::qualifierName[] = { "const", "restrict", "volatile", "lvalue" };
    21 const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", "bool", "complex", "imaginary" };
     21const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", "_Bool", "_Complex", "_Imaginary" };
    2222const char *DeclarationNode::modifierName[] = { "signed", "unsigned", "short", "long" };
    2323const char *DeclarationNode::tyConName[] = { "struct", "union", "context" };
     
    799799                } else if ( StructDecl *agg = dynamic_cast< StructDecl* >( decl ) ) {
    800800                    StructInstType *inst = new StructInstType( Type::Qualifiers(), agg->get_name() );
    801                    *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );
     801                    *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );
    802802                    delete agg;
    803803                } else if ( UnionDecl *agg = dynamic_cast< UnionDecl* >( decl ) ) {
    804804                    UnionInstType *inst = new UnionInstType( Type::Qualifiers(), agg->get_name() );
    805                    *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );
     805                    *out++ = new ObjectDecl( "", Declaration::NoStorageClass, linkage, 0, inst, 0 );
    806806                }
    807807            }
Note: See TracChangeset for help on using the changeset viewer.