X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcharmap.c;h=08bbdb2ac467ad8982ecc713d458af2d8ee72e7d;hb=50237e1d2713126e87d510017a4cc304a69c6798;hp=7104cd3d8e4681118ecb6670367faf7de24cd603;hpb=925b59699ea916845d25af1b26e7c58d5beeac00;p=idzebra-moved-to-github.git diff --git a/util/charmap.c b/util/charmap.c index 7104cd3..08bbdb2 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -1,10 +1,13 @@ /* - * Copyright (C) 1996-1997, Index Data I/S + * Copyright (C) 1996-1998, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: charmap.c,v $ - * Revision 1.13 1997-10-27 14:33:06 adam + * Revision 1.14 1998-10-13 20:09:18 adam + * Changed call to readconf_line. + * + * Revision 1.13 1997/10/27 14:33:06 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 @@ -346,6 +349,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only) FILE *f; char line[512], *argv[50]; chrmaptab res; + int lineno = 0; int argc, num = (int) *CHR_BASE, i; if (!(f = yaz_path_fopen(tabpath, name, "r"))) @@ -382,7 +386,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only) res->output[(int) *CHR_UNKNOWN] = (unsigned char*) "@"; res->base_uppercase = 0; - while ((argc = readconf_line(f, line, 512, argv, 50))) + while ((argc = readconf_line(f, &lineno, line, 512, argv, 50))) if (!map_only && !yaz_matchstr(argv[0], "lowercase")) { if (argc != 2)