From ab4a8e4346e30d1cc734d54d9d79079e84143332 Mon Sep 17 00:00:00 2001 From: Damien Dupuis Date: Mon, 23 Aug 2010 12:56:53 +0000 Subject: [PATCH] moving extern command from .yy file o .ll file so there is no error under mac osx --- crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy | 2 +- crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy b/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy index 6c7e5629..fe8af41d 100644 --- a/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy +++ b/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy @@ -33,11 +33,11 @@ using namespace CRL; extern char* yytext; extern FILE* yyin; -extern int yylineno; extern int yylex (); extern int yywrap (); extern void yyrestart ( FILE* ); +int yylineno = 0; namespace { diff --git a/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll b/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll index 5d863e3e..bc0a84c8 100644 --- a/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll +++ b/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll @@ -7,7 +7,7 @@ #include "AcmSigdaParserGrammar.hpp" static std::string nameToken; - int yylineno = 0; +extern int yylineno; %}