/[ff3d]/ff3d/language/Instruction.hpp
ViewVC logotype

Diff of /ff3d/language/Instruction.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:53 2003 UTC revision 1.2 by delpinux, Sun May 4 18:09:01 2003 UTC
# Line 130  public: Line 130  public:
130    void execute()    void execute()
131    {    {
132      (*__booleanExpression).execute();      (*__booleanExpression).execute();
133      if ((*__booleanExpression).value()) {      if ((*__booleanExpression).boolValue()) {
134        (*__firstStatement).execute();        (*__firstStatement).execute();
135      } else {      } else {
136        (*__secondStatement).execute();        (*__secondStatement).execute();
# Line 176  public: Line 176  public:
176      do {      do {
177        (*__statement).execute();        (*__statement).execute();
178        (*__booleanExpression).execute();        (*__booleanExpression).execute();
179      } while ((*__booleanExpression).value());      } while ((*__booleanExpression).boolValue());
180    }    }
181    
182    InstructionDoWhileStatement(ReferenceCounting<Instruction> statement,    InstructionDoWhileStatement(ReferenceCounting<Instruction> statement,
# Line 216  public: Line 216  public:
216    {    {
217      for ((*__instruction1).execute();      for ((*__instruction1).execute();
218           (*__booleanExpression).execute(),           (*__booleanExpression).execute(),
219             (*__booleanExpression).value();             (*__booleanExpression).boolValue();
220           (*__instruction2).execute())           (*__instruction2).execute())
221        {        {
222          (*__statement).execute();          (*__statement).execute();
# Line 263  public: Line 263  public:
263    void execute()    void execute()
264    {    {
265      (*__booleanExpression).execute();      (*__booleanExpression).execute();
266      while ((*__booleanExpression).value()) {      while ((*__booleanExpression).boolValue()) {
267        (*__statement).execute();        (*__statement).execute();
268        (*__booleanExpression).execute();        (*__booleanExpression).execute();
269      }      }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26