From 86c7f194b2261877a128a50b7f596beed2127f4d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 8 Dec 2000 22:35:29 +0000 Subject: [PATCH] *** empty log message *** --- Parser/Gmsh.l | 7 ++++--- Parser/Gmsh.tab.cpp | 2 +- Parser/Gmsh.yy.cpp | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Parser/Gmsh.l b/Parser/Gmsh.l index 0f52ee8960..d4925ee88b 100644 --- a/Parser/Gmsh.l +++ b/Parser/Gmsh.l @@ -1,4 +1,4 @@ -%{ /* $Id: Gmsh.l,v 1.15 2000-12-08 22:17:47 geuzaine Exp $ */ +%{ /* $Id: Gmsh.l,v 1.16 2000-12-08 22:34:53 geuzaine Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -314,6 +314,7 @@ void skipline(void) void skip_until(char *until) { + int i; int l = strlen(until); char chars[256]; while(1) @@ -330,7 +331,7 @@ void skip_until(char *until) } printf("%c",chars[0]); - for(int i=1;i<l;i++) + for(i=1;i<l;i++) { chars[i] = yyinput(); if(chars[i] == EOF) @@ -344,7 +345,7 @@ void skip_until(char *until) { return; } - for(int i=1;i<l-1;i++) + for(i=1;i<l-1;i++) { unput(chars[l-i]); } diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index 5eae9fc9b2..78c69150b7 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -165,7 +165,7 @@ #define tMINUSMINUS 415 #line 1 "Gmsh.y" - /* $Id: Gmsh.tab.cpp,v 1.34 2000-12-08 22:31:19 geuzaine Exp $ */ + /* $Id: Gmsh.tab.cpp,v 1.35 2000-12-08 22:35:29 geuzaine Exp $ */ #include <stdarg.h> diff --git a/Parser/Gmsh.yy.cpp b/Parser/Gmsh.yy.cpp index 07acccbdec..db46b2011e 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.34 2000-12-08 22:31:19 geuzaine Exp $ + * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.35 2000-12-08 22:35:29 geuzaine Exp $ */ #define FLEX_SCANNER @@ -3074,6 +3074,7 @@ void skipline(void) void skip_until(char *until) { + int i; int l = strlen(until); char chars[256]; while(1) @@ -3090,7 +3091,7 @@ void skip_until(char *until) } printf("%c",chars[0]); - for(int i=1;i<l;i++) + for(i=1;i<l;i++) { chars[i] = yyinput(); if(chars[i] == EOF) @@ -3104,7 +3105,7 @@ void skip_until(char *until) { return; } - for(int i=1;i<l-1;i++) + for(i=1;i<l-1;i++) { unput(chars[l-i]); } -- GitLab