From: Adam Dickmeiss Date: Mon, 27 Mar 1995 12:52:18 +0000 (+0000) Subject: A little more verbose in marc dump. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=5b203705fc571cd1b96e5366f6ab4fca8191dd2c;p=egate.git A little more verbose in marc dump. --- diff --git a/util/Makefile b/util/Makefile index 6141629..271bdd4 100644 --- a/util/Makefile +++ b/util/Makefile @@ -2,7 +2,10 @@ # Europagate, 1995 # # $Log: Makefile,v $ -# Revision 1.9 1995/03/27 08:24:57 adam +# Revision 1.10 1995/03/27 12:52:18 adam +# A little more verbose in marc dump. +# +# Revision 1.9 1995/03/27 08:24:57 adam # New module gip: Gateway IPc module. # New module gw-db: Gateway hash-db module (user information table). # @@ -31,7 +34,7 @@ # SHELL=/bin/sh INCLUDE=-I../include -CFLAGS=-g -Wall -pedantic -ansi +#CFLAGS=-g -Wall -pedantic -ansi TPROG1=iso2709dump TPROG2=gwdbtest LIB=../lib/util.a diff --git a/util/gip.c b/util/gip.c index 9604f34..b67a856 100644 --- a/util/gip.c +++ b/util/gip.c @@ -2,7 +2,10 @@ * Europagate, 1995 * * $Log: gip.c,v $ - * Revision 1.1 1995/03/27 08:24:58 adam + * Revision 1.2 1995/03/27 12:52:18 adam + * A little more verbose in marc dump. + * + * Revision 1.1 1995/03/27 08:24:58 adam * New module gip: Gateway IPc module. * New module gw-db: Gateway hash-db module (user information table). * @@ -16,6 +19,7 @@ #include #include #include +#include #include diff --git a/util/iso2709dump.c b/util/iso2709dump.c index fd1056e..e8d82da 100644 --- a/util/iso2709dump.c +++ b/util/iso2709dump.c @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: iso2709dump.c,v $ - * Revision 1.5 1995/02/22 21:32:36 adam + * Revision 1.6 1995/03/27 12:52:18 adam + * A little more verbose in marc dump. + * + * Revision 1.5 1995/02/22 21:32:36 adam * Changed header. * * Revision 1.3 1995/02/10 17:05:18 adam @@ -31,13 +34,23 @@ int main (int argc, char **argv) { char *buf; Iso2709Rec rec; + int no = 0; while ((buf = iso2709_read (stdin))) { rec = iso2709_cvt (buf); - iso2709_display (rec, stderr); + fprintf (stderr, "------- %d --------\n", ++no); + if (rec) + { + iso2709_display (rec, stderr); + iso2709_rm (rec); + } + else + { + fprintf (stderr, "Bad record\n"); + break; + } free (buf); - iso2709_rm (rec); } return 0; }