X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkdump.c;h=c9aae4a7b3edb81cd47b681bfc40fab192619ee3;hb=28f3461a79a4569d736f4ffc66c6ae207e38c2ab;hp=4f78ddda22c5083c2e38b69a220fec1ba780e8fe;hpb=85a2a0b28cb516d28ac70b7824f2b7d4b07e56ae;p=idzebra-moved-to-github.git diff --git a/index/kdump.c b/index/kdump.c index 4f78ddd..c9aae4a 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994-1996, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: kdump.c,v $ - * Revision 1.16 1998-05-20 10:12:17 adam + * Revision 1.18 1999-09-07 07:19:21 adam + * Work on character mapping. Implemented replace rules. + * + * Revision 1.17 1999/02/02 14:50:55 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.16 1998/05/20 10:12:17 adam * Implemented automatic EXPLAIN database maintenance. * Modified Zebra to work with ASN.1 compiled version of YAZ. * @@ -63,7 +69,7 @@ #include #include #include -#ifdef WINDOWS +#ifdef WIN32 #include #else #include @@ -204,8 +210,11 @@ int main (int argc, char **argv) while (*from) { const char *res = zebra_maps_output (zm, reg_type, &from); - while (*res) - *(to++) = *(res++); + if (!res) + *to++ = *from++; + else + while (*res) + *to++ = *res++; } *to = '\0'; printf ("%c %3d %c %7d %5d %s\n", reg_type, usedb_type, op ? 'i':'d',