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

Simplify error messages in parser a bit and change msg from ERROR to WARNING...

Simplify error messages in parser a bit and change msg from ERROR to WARNING for list of shapes (less annoying when doing generic transformations, e.g. of points). Noticed this thanks to Genot Jean-Sebastien <JSGenot@HerouxDevtek.com>
parent cffaec94
Branches
Tags
No related merge requests found
......@@ -55,8 +55,6 @@
#define STATUS2N 25 // Same as STATUS2, but not going into the log file
#define STATUS3N 26 // Same as STATUS3, but not going into the log file
#define PARSER_ERROR 27 // Error during syntax parsing
#define PARSER_INFO 28 // Info during syntax parsing
#define LOG_INFO 29 // Info put only in the logfile
#define DIRECT 30 // Direct message (no special formatting)
......@@ -72,8 +70,6 @@
#define DEBUG_STR "Debug : "
#define DEBUG_NIL " : "
#define STATUS_STR "Info : "
#define PARSER_ERROR_STR "Parse Error : "
#define PARSER_INFO_STR "Parse Info : "
void Signal (int signum);
void Msg (int level, char *fmt, ...);
......
// $Id: Message.cpp,v 1.31 2002-08-28 21:26:40 geuzaine Exp $
// $Id: Message.cpp,v 1.32 2002-09-19 21:44:12 geuzaine Exp $
//
// Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
//
......@@ -113,10 +113,6 @@ void Msg(int level, char *fmt, ...){
case DEBUG2 :
case DEBUG3 : str = DEBUG_NIL; verb = 3; break ;
case PARSER_ERROR : str = PARSER_ERROR_STR ; break ;
case PARSER_INFO : str = PARSER_INFO_STR ; verb = 2; break ;
case LOG_INFO : verb = 2 ; window = 3; break ;
default : return;
......
This diff is collapsed.
#ifndef BISON_GMSH_TAB_HPP
# define BISON_GMSH_TAB_HPP
#ifndef YYSTYPE
typedef union {
char *c;
int i;
......@@ -10,10 +6,7 @@ typedef union {
double v[5];
Shape s;
List_T *l;
} yystype;
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
} YYSTYPE;
#define tDOUBLE 257
#define tSTRING 258
#define tBIGSTR 259
......@@ -198,5 +191,3 @@ typedef union {
extern YYSTYPE yylval;
#endif /* not BISON_GMSH_TAB_HPP */
This diff is collapsed.
......@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.142 2002-09-01 21:54:13 geuzaine Exp $
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.143 2002-09-19 21:44:14 geuzaine Exp $
*/
#define FLEX_SCANNER
......@@ -1007,7 +1007,7 @@ char *yytext;
#define INITIAL 0
#line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.142 2002-09-01 21:54:13 geuzaine Exp $
// $Id: Gmsh.yy.cpp,v 1.143 2002-09-19 21:44:14 geuzaine Exp $
//
// Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment