X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkdump.c;h=40ab26fc5edb7cf0f4b0fc3b6663748bf2df837e;hb=eaa8c71186392f0d2a1ab714dc6f3f0a4da71d03;hp=cd094bc85ff6f68b15fd8b096a25a56b3c6d28af;hpb=c5ae7c0234530d9c3c907383583cd156ed45628d;p=idzebra-moved-to-github.git diff --git a/index/kdump.c b/index/kdump.c index cd094bc..40ab26f 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -4,7 +4,22 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: kdump.c,v $ - * Revision 1.10 1996-06-04 14:56:12 quinn + * Revision 1.14 1997-10-27 14:33:04 adam + * Moved towards generic character mapping depending on "structure" + * field in abstract syntax file. Fixed a few memory leaks. Fixed + * bug with negative integers when doing searches with relational + * operators. + * + * Revision 1.13 1997/09/09 13:38:07 adam + * Partial port to WIN95/NT. + * + * Revision 1.12 1997/09/05 09:52:32 adam + * Extra argument added to function chr_read_maptab (tab path). + * + * Revision 1.11 1996/10/29 14:06:49 adam + * Include zebrautl.h instead of alexutil.h. + * + * Revision 1.10 1996/06/04 14:56:12 quinn * Fix * * Revision 1.9 1996/06/04 14:18:53 quinn @@ -38,11 +53,15 @@ * */ #include +#include #include +#ifdef WINDOWS +#include +#else #include +#endif #include -#include #include #include "index.h" @@ -115,7 +134,7 @@ int main (int argc, char **argv) char key_info[256]; FILE *inf; struct it_key prevk; - chrmaptab *map = 0; + chrmaptab map = 0; prevk.sysno = 0; prevk.seqno = 0; @@ -133,7 +152,7 @@ int main (int argc, char **argv) } else if (ret == 'm') { - if (!(map = chr_read_maptab(arg))) + if (!(map = chrmaptab_create (NULL, arg, 0))) { logf(LOG_FATAL, "Failed to open maptab"); exit(1); @@ -169,7 +188,7 @@ int main (int argc, char **argv) while (*from) { - char *res = (char*)map->output[(unsigned char) *(from++)]; + char *res = chr_map_output(map, from, 1); while (*res) *(to++) = *(res++); }