Skip to content
Snippets Groups Projects
Commit a5a40348 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

typos

parent 51b6a5b6
No related branches found
No related tags found
No related merge requests found
%{ %{
// $Id: Gmsh.l,v 1.28 2001-03-09 08:02:58 geuzaine Exp $ // $Id: Gmsh.l,v 1.29 2001-04-20 08:52:23 geuzaine Exp $
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -281,9 +281,9 @@ void skipcomments(void) { ...@@ -281,9 +281,9 @@ void skipcomments(void) {
while (1) { while (1) {
while ((c=yyinput()) != '*'){ while ((c=yyinput()) != '*'){
if(c == EOF) { if(c == EOF){
fprintf(stderr, "Error: End of File in Commented Region\n") ; Msg(GERROR, "End of file in commented region") ;
exit(1); return;
} }
} }
if ((c = yyinput()) == '/') if ((c = yyinput()) == '/')
...@@ -330,10 +330,7 @@ void skip_until(char *skip, char *until){ ...@@ -330,10 +330,7 @@ void skip_until(char *skip, char *until){
while(1){ while(1){
while (1){ while (1){
chars[0] = yyinput(); chars[0] = yyinput();
if(chars[0] == (char)EOF){ if(chars[0] == (char)EOF) Msg(FATAL, "Unexpected end of file") ;
fprintf(stderr, "Error: Unexpected End Of File\n") ;
exit(1);
}
if(chars[0] == until[0]) break; if(chars[0] == until[0]) break;
if(skip && chars[0] == skip[0]) break; if(skip && chars[0] == skip[0]) break;
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */ /* A lexical scanner generated by flex */
/* Scanner skeleton version: /* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.84 2001-04-17 06:55:48 geuzaine Exp $ * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.85 2001-04-20 08:52:24 geuzaine Exp $
*/ */
#define FLEX_SCANNER #define FLEX_SCANNER
...@@ -978,7 +978,7 @@ char *yytext; ...@@ -978,7 +978,7 @@ char *yytext;
#define INITIAL 0 #define INITIAL 0
#line 2 "Gmsh.l" #line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.84 2001-04-17 06:55:48 geuzaine Exp $ // $Id: Gmsh.yy.cpp,v 1.85 2001-04-20 08:52:24 geuzaine Exp $
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -3047,9 +3047,9 @@ void skipcomments(void) { ...@@ -3047,9 +3047,9 @@ void skipcomments(void) {
while (1) { while (1) {
while ((c=yyinput()) != '*'){ while ((c=yyinput()) != '*'){
if(c == EOF) { if(c == EOF){
fprintf(stderr, "Error: End of File in Commented Region\n") ; Msg(GERROR, "End of file in commented region") ;
exit(1); return;
} }
} }
if ((c = yyinput()) == '/') if ((c = yyinput()) == '/')
...@@ -3096,10 +3096,7 @@ void skip_until(char *skip, char *until){ ...@@ -3096,10 +3096,7 @@ void skip_until(char *skip, char *until){
while(1){ while(1){
while (1){ while (1){
chars[0] = yyinput(); chars[0] = yyinput();
if(chars[0] == (char)EOF){ if(chars[0] == (char)EOF) Msg(FATAL, "Unexpected end of file") ;
fprintf(stderr, "Error: Unexpected End Of File\n") ;
exit(1);
}
if(chars[0] == until[0]) break; if(chars[0] == until[0]) break;
if(skip && chars[0] == skip[0]) break; if(skip && chars[0] == skip[0]) break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment