From b67069ff6bcdc75a8296d4c7005b65b7e4082e1a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 27 Dec 2004 00:59:15 +0000 Subject: [PATCH] my last commit also fixed several problems in For/EndFor loops: - the body of the loop was executed at least once, even if the test was always false (e.g. For (1:-1:1) ) - the body could be executed one extra time when using optional step values - the for loops didn't work with negative step values --- Parser/Gmsh.tab.cpp | 2 +- Parser/Gmsh.yy.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index 3456803293..27b9b5e4ef 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -195,7 +195,7 @@ #line 1 "Gmsh.y" -// $Id: Gmsh.tab.cpp,v 1.216 2004-12-27 00:46:59 geuzaine Exp $ +// $Id: Gmsh.tab.cpp,v 1.217 2004-12-27 00:59:15 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // diff --git a/Parser/Gmsh.yy.cpp b/Parser/Gmsh.yy.cpp index d72841edfe..a58b4ea1d7 100644 --- a/Parser/Gmsh.yy.cpp +++ b/Parser/Gmsh.yy.cpp @@ -2,7 +2,7 @@ /* A lexical scanner generated by flex */ /* Scanner skeleton version: - * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.215 2004-12-27 00:47:03 geuzaine Exp $ + * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.216 2004-12-27 00:59:15 geuzaine Exp $ */ #define FLEX_SCANNER @@ -1033,7 +1033,7 @@ char *yytext; #line 1 "Gmsh.l" #define INITIAL 0 #line 2 "Gmsh.l" -// $Id: Gmsh.yy.cpp,v 1.215 2004-12-27 00:47:03 geuzaine Exp $ +// $Id: Gmsh.yy.cpp,v 1.216 2004-12-27 00:59:15 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // -- GitLab