Only base name of input file in reference output.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 27 Oct 2002 18:04:07 +0000 (18:04 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 27 Oct 2002 18:04:07 +0000 (18:04 +0000)
t/src/gomtest.c
t/src/standalone.c

index 942f703f44dec5bb5b70132a8b608aa502872f1f..07cc066e1a9fc448a95229fbfcc8fe64400efb01 100644 (file)
@@ -24,6 +24,7 @@
 #include "gom.h"
 #include "output.h"
 #include "dump_gom.h"
+#include "portability.h"
 #include <stdio.h>
 #include <locale.h>
 #include "gedcom.h"
@@ -117,7 +118,7 @@ int main(int argc, char* argv[])
   gedcom_set_message_handler(gedcom_message_handler);
 
   output_open(outfilename);
-  output(0, "\n=== Parsing file %s\n", file_name);
+  output(0, "\n=== Parsing file %s\n", simple_base_name(file_name));
   result = gom_parse_file(file_name);
   if (result == 0) {
     output(1, "Parse succeeded\n");
index 88b6a2854d85725b8018c6f39f61daca7617feb5..d2a2f109b9321e1d1b2839260a07bbcaf53c5bf3 100644 (file)
@@ -310,7 +310,7 @@ int main(int argc, char* argv[])
     gedcom_parse_file(BOGUS_FILE_NAME);
   }
   while (run_times-- > 0) {
-    output(0, "\n=== Parsing file %s\n", file_name);
+    output(0, "\n=== Parsing file %s\n", simple_base_name(file_name));
     result |= gedcom_parse_file(file_name);
     output(0, "\n=== Total conversion failures: %d\n", total_conv_fails);
   }