X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-grs.c;h=1726ef6abc83249af2885dd8f8edee20716098f3;hp=3b5a9ba968b1f77c1c3795feb9711e59ffcfec59;hb=d51b21c6f41a021f21078921a0de50106264d55e;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 3b5a9ba..1726ef6 100644 --- a/ztest/read-grs.c +++ b/ztest/read-grs.c @@ -1,14 +1,15 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ - /** \file * \brief Little toy-thing to read GRS-1 records from a file. */ +#if HAVE_CONFIG_H +#include +#endif #include -#include #include #include @@ -32,7 +33,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) while (fgets(buf = line, 512, f)) { - while (*buf && isspace(*(unsigned char *) buf)) + while (*buf && yaz_isspace(*buf)) buf++; if (!*buf || *buf == '#') continue; @@ -50,7 +51,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) if (!(buf = strchr(buf, ')'))) return 0; buf++; - while (*buf && isspace(*(unsigned char *) buf)) + while (*buf && yaz_isspace(*buf)) buf++; if (!*buf) return 0; @@ -118,6 +119,7 @@ Z_GenericRecord *dummy_grs_record (int num, ODR o) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab