Changes in src/Parser/DeclarationNode.cc [f135b50:93bbbc4]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rf135b50 r93bbbc4 78 78 delete variable.initializer; 79 79 80 //delete type;80 delete type; 81 81 delete bitfieldWidth; 82 82 … … 253 253 } // DeclarationNode::newAggregate 254 254 255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body , bool typed) {255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body ) { 256 256 DeclarationNode * newnode = new DeclarationNode; 257 257 newnode->type = new TypeData( TypeData::Enum ); … … 263 263 } // DeclarationNode::newEnum 264 264 265 266 267 265 DeclarationNode * DeclarationNode::newName( const string * name ) { 268 266 DeclarationNode * newnode = new DeclarationNode; … … 272 270 } // DeclarationNode::newName 273 271 274 DeclarationNode * DeclarationNode::newEnumConstant( const string * name, ExpressionNode * constant ) { // Marker272 DeclarationNode * DeclarationNode::newEnumConstant( const string * name, ExpressionNode * constant ) { 275 273 DeclarationNode * newnode = newName( name ); 276 274 newnode->enumeratorValue.reset( constant ); … … 667 665 } 668 666 669 DeclarationNode * DeclarationNode::addEnumBase( DeclarationNode * o ) {670 if ( o && o -> type) {671 type->base= o->type;672 }673 delete o;674 return this;675 }676 677 667 DeclarationNode * DeclarationNode::addTypedef() { 678 668 TypeData * newtype = new TypeData( TypeData::Symbolic );
Note:
See TracChangeset
for help on using the changeset viewer.