diff ir/irtypestruct.h @ 1262:ec1d9dc1d32a

Fixed struct default initializers.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 25 Apr 2009 18:26:54 +0200
parents 79758fd2f48a
children dd135ff697fa
line wrap: on
line diff
--- a/ir/irtypestruct.h	Wed Apr 22 14:49:49 2009 -0600
+++ b/ir/irtypestruct.h	Sat Apr 25 18:26:54 2009 +0200
@@ -20,9 +20,20 @@
     ///
     IrTypeAggr* isAggr()            { return this; }
 
+    ///
+    typedef std::vector<VarDeclaration*>::iterator iterator;
+
+    ///
+    iterator def_begin()        { return default_fields.begin(); }
+
+    ///
+    iterator def_end()          { return default_fields.end(); }
+
 protected:
     /// AggregateDeclaration this type represents.
     AggregateDeclaration* aggr;
+
+    std::vector<VarDeclaration*> default_fields;
 };
 
 //////////////////////////////////////////////////////////////////////////////