]> www.ginac.de Git - ginac.git/commitdiff
- Remved obsolete remainders of preprocessor symbol NO_NAMESPACE_GINAC.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 8 May 2001 00:34:44 +0000 (00:34 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 8 May 2001 00:34:44 +0000 (00:34 +0000)
ginac/input_lexer.ll
ginac/input_parser.yy

index 34cba11f045fe7921e9122be3e93f7d8ee83ee0a..6c22ec08dbca76c800fea1654292a3c23c4ae9b0 100644 (file)
 #include "numeric.h"
 #include "symbol.h"
 
 #include "numeric.h"
 #include "symbol.h"
 
-#ifndef NO_NAMESPACE_GINAC
 using namespace GiNaC;
 namespace GiNaC {
 using namespace GiNaC;
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 #include "input_parser.h"
 
 
 #include "input_parser.h"
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
 
 // Table of all used symbols
 struct sym_def {
 
 // Table of all used symbols
 struct sym_def {
@@ -164,9 +160,7 @@ int ginac_yywrap()
        return 1;
 }
 
        return 1;
 }
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 // Set the input string
 void set_lexer_string(const std::string &s)
 
 // 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;
 }
 
                return (*i).second.predefined;
 }
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
index 1685c796fec666086f8d44cf8687c91092cd43de..9eab1a594cb85a0e28eebece3c7cab9339eebfe5 100644 (file)
@@ -39,9 +39,7 @@
 #include "matrix.h"
 #include "inifcns.h"
 
 #include "matrix.h"
 #include "inifcns.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 #define YYERROR_VERBOSE 1
 
 
 #define YYERROR_VERBOSE 1
 
@@ -150,15 +148,11 @@ std::string get_parser_error(void)
        return parser_error;
 }
 
        return parser_error;
 }
 
-#ifndef NO_NAMESPACE_GINAC
 } // 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)
 {
 // 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;
 }
        return 0;
 }