v4 parser: made correction to ylmm for compatibility with gcc 4.1

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@872 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-08-27 12:57:18 +00:00
parent e2882021d4
commit 2852e583be
2 changed files with 4 additions and 2 deletions

View File

@ -65,6 +65,7 @@ extern int yyleng;
int yylex();
static YLMM_SCANNER_CLASS * _scanner;
namespace ylmm {
//____________________________________________________________________
/** Specialisations of some member functions of basic_scanner */
template <>
@ -113,7 +114,7 @@ ylmm::basic_scanner<YLMM_SCANNER_CLASS::token_type,
{
return yyleng;
}
}
//____________________________________________________________________
/** Forward calls to class */
extern "C" {

View File

@ -78,6 +78,7 @@ int yyparse();
static int yyparse(void*) { return yyparse(); }
#endif
namespace ylmm {
//____________________________________________________________________
/** Specialisation of some basic_parser methods for this grammar. */
template <>
@ -121,7 +122,7 @@ ylmm::basic_parser<YLMM_PARSER_CLASS::token_type,
_parser = static_cast<YLMM_PARSER_CLASS*>(this);
return yyparse(arg);
}
}
//____________________________________________________________________
/** (Re)define YYPRINT to call parser member function print.
@param f FILE argument, which is ignored.