]> www.ginac.de Git - ginac.git/blobdiff - cint/dummies.pl
more modifications for future cints with correct namespace handling
[ginac.git] / cint / dummies.pl
index 0bb469628a0fa913f720a4f3a7def912cedccd9f..4da0b81277844ceac9ace599852e51939187770e 100644 (file)
@@ -224,7 +224,7 @@ $opening=<<END_OF_OPENING;
 #include <ginac/function.h>
 
 #ifndef NO_NAMESPACE_GINAC
 #include <ginac/function.h>
 
 #ifndef NO_NAMESPACE_GINAC
-using namespace GiNaC;
+namespace GiNaC {
 #endif // ndef NO_NAMESPACE_GINAC
 
 END_OF_OPENING
 #endif // ndef NO_NAMESPACE_GINAC
 
 END_OF_OPENING
@@ -232,6 +232,16 @@ END_OF_OPENING
 print OUT $opening;
 print OUT "void ginsh_get_ginac_functions(void) { }\n";
 
 print OUT $opening;
 print OUT "void ginsh_get_ginac_functions(void) { }\n";
 
+$closing=<<END_OF_CLOSING;
+
+#ifndef NO_NAMESPACE_GINAC
+}
+#endif // ndef NO_NAMESPACE_GINAC
+
+END_OF_CLOSING
+
+print OUT $closing;
+
 close OUT;
 
 # Create dummies 
 close OUT;
 
 # Create dummies