- Adjusted build-environment for "Cint without crutches" (tm).
[ginac.git] / tools / viewgar.cpp
index 1f333f0e136be341c09e28a2c8a5fafc093c90a1..5568c51e5bc01d9dd7df7ced05b2bb725b138d19 100644 (file)
 #include <fstream>
 #include <stdexcept>
 
 #include <fstream>
 #include <stdexcept>
 
-#include <ginac/ginac.h>
+#include "ginac.h"
+
+#ifndef NO_NAMESPACE_GINAC
 using namespace GiNaC;
 using namespace GiNaC;
+#endif // ndef NO_NAMESPACE_GINAC
 
 int main(int argc, char **argv)
 {
        if (argc < 2) {
 
 int main(int argc, char **argv)
 {
        if (argc < 2) {
-               fprintf(stderr, "Usage: %s [-d] file...", argv[0]);
+               fprintf(stderr, "Usage: %s [-d] file...\n", argv[0]);
                exit(1);
        }
        argc--; argv++;
                exit(1);
        }
        argc--; argv++;
@@ -47,7 +50,7 @@ int main(int argc, char **argv)
                        archive ar;
                        f >> ar;
                        if (dump_mode) {
                        archive ar;
                        f >> ar;
                        if (dump_mode) {
-                               ar.dump(cout);
+                               ar.printraw(cout);
                                cout << endl;
                        } else {
                                for (unsigned int i=0; i<ar.num_expressions(); i++) {
                                cout << endl;
                        } else {
                                for (unsigned int i=0; i<ar.num_expressions(); i++) {