[opengtl-commits] [382] mark structure/ array set to a Variable during initialisation and coming from a function

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 382
Author:   cyrille
Date:     2008-09-10 22:50:41 +0200 (Wed, 10 Sep 2008)

Log Message:
-----------
mark structure/array set to a Variable during initialisation and coming from a function

Modified Paths:
--------------
    trunk/OpenGTL/OpenGTL/GTLCore/VariableNG_p.cpp


Modified: trunk/OpenGTL/OpenGTL/GTLCore/VariableNG_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/VariableNG_p.cpp	2008-09-10 07:29:21 UTC (rev 381)
+++ trunk/OpenGTL/OpenGTL/GTLCore/VariableNG_p.cpp	2008-09-10 20:50:41 UTC (rev 382)
@@ -80,6 +80,7 @@
       and (type()->dataType() == Type::ARRAY or type()->dataType() == Type::STRUCTURE ) )
   {
     initialise( _generationContext, _initialiser.value() );
+    _bb = d->visitor->mark( _generationContext, _bb, d->pointer, d->type, CodeGenerator::integerToConstant( 1 ) );
   } else {
     if( d->allocatedInMemory
         and (type()->dataType() == Type::ARRAY or type()->dataType() == Type::STRUCTURE ) )


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/