From f5536efa098703ce4e857aa079db6d29d06f3ac6 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 8 May 2001 00:34:44 +0000 Subject: [PATCH] - Remved obsolete remainders of preprocessor symbol NO_NAMESPACE_GINAC. --- ginac/input_lexer.ll | 8 -------- ginac/input_parser.yy | 8 +------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/ginac/input_lexer.ll b/ginac/input_lexer.ll index 34cba11f..6c22ec08 100644 --- a/ginac/input_lexer.ll +++ b/ginac/input_lexer.ll @@ -39,16 +39,12 @@ #include "numeric.h" #include "symbol.h" -#ifndef NO_NAMESPACE_GINAC using namespace GiNaC; namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC #include "input_parser.h" -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC // Table of all used symbols struct sym_def { @@ -164,9 +160,7 @@ int ginac_yywrap() return 1; } -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC // Set the input string void set_lexer_string(const std::string &s) @@ -197,6 +191,4 @@ bool is_lexer_symbol_predefined(const ex &s) return (*i).second.predefined; } -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC diff --git a/ginac/input_parser.yy b/ginac/input_parser.yy index 1685c796..9eab1a59 100644 --- a/ginac/input_parser.yy +++ b/ginac/input_parser.yy @@ -39,9 +39,7 @@ #include "matrix.h" #include "inifcns.h" -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC #define YYERROR_VERBOSE 1 @@ -150,15 +148,11 @@ std::string get_parser_error(void) return parser_error; } -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -using GiNaC::parser_error; -#endif // ndef NO_NAMESPACE_GINAC - // Error print routine (store error string in parser_error) int ginac_yyerror(char *s) { - parser_error = std::string(s) + " at " + std::string(ginac_yytext); + GiNaC::parser_error = std::string(s) + " at " + std::string(ginac_yytext); return 0; } -- 2.46.2