Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    r145f1fc rde62360d  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Jul 14 12:14:54 2015
    13 // Update Count     : 24
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue Jun 23 11:44:27 2015
     13// Update Count     : 20
    1414//
    1515
     
    199199class ForStmt : public Statement {
    200200  public:
    201         ForStmt( std::list<Label> labels, std::list<Statement *> initialization,
     201        ForStmt( std::list<Label> labels, Statement *initialization = 0,
    202202             Expression *condition = 0, Expression *increment = 0, Statement *body = 0 );
    203203        virtual ~ForStmt();
    204204
    205         std::list<Statement *> &get_initialization() { return initialization; }
    206         void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; }
     205        Statement *get_initialization() { return initialization; }
     206        void set_initialization( Statement *newValue ) { initialization = newValue; }
    207207        Expression *get_condition() { return condition; }
    208208        void set_condition( Expression *newValue ) { condition = newValue; }
     
    217217        virtual void print( std::ostream &os, int indent = 0 ) const;
    218218  private:
    219         std::list<Statement *> initialization;
     219        Statement *initialization;
    220220        Expression *condition;
    221221        Expression *increment;
Note: See TracChangeset for help on using the changeset viewer.