Changes in src/Parser/DeclarationNode.cc [1db21619:90c3b1c]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r1db21619 r90c3b1c 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 14 14:46:32 201513 // Update Count : 1 2612 // Last Modified On : Wed Mar 2 13:57:42 2016 13 // Update Count : 133 14 14 // 15 15 … … 34 34 const char *DeclarationNode::storageName[] = { "extern", "static", "auto", "register", "inline", "fortran", "_Noreturn", "_Thread_local", "" }; 35 35 const char *DeclarationNode::qualifierName[] = { "const", "restrict", "volatile", "lvalue", "_Atomic" }; 36 const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", "_Bool", "_Complex", "_Imaginary" };36 const char *DeclarationNode::basicTypeName[] = { "char", "int", "float", "double", "void", "_Bool", "_Complex", "_Imaginary", }; 37 37 const char *DeclarationNode::modifierName[] = { "signed", "unsigned", "short", "long" }; 38 38 const char *DeclarationNode::aggregateName[] = { "struct", "union", "context" }; 39 39 const char *DeclarationNode::typeClassName[] = { "type", "dtype", "ftype" }; 40 const char *DeclarationNode::builtinTypeName[] = { "__builtin_va_list" }; 40 41 41 42 UniqueName DeclarationNode::anonymous( "__anonymous" ); … … 147 148 newnode->type = new TypeData( TypeData::Basic ); 148 149 newnode->type->basic->typeSpec.push_back( bt ); 150 return newnode; 151 } 152 153 DeclarationNode *DeclarationNode::newBuiltinType( BuiltinType bt ) { 154 DeclarationNode *newnode = new DeclarationNode; 155 newnode->type = new TypeData( TypeData::Builtin ); 156 newnode->type->builtin->type = bt; 149 157 return newnode; 150 158 } … … 215 223 DeclarationNode *newnode = new DeclarationNode; 216 224 newnode->name = assign_strptr( name ); 217 // do something with the constant225 newnode->enumeratorValue = constant; 218 226 return newnode; 219 227 } … … 794 802 errors.append( e ); 795 803 } // try 796 cur = dynamic_cast< DeclarationNode *>( cur->get_link() );804 cur = dynamic_cast<DeclarationNode *>( cur->get_link() ); 797 805 } // while 798 806 if ( ! errors.isEmpty() ) {
Note:
See TracChangeset
for help on using the changeset viewer.