X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=retrieval%2Fd1_sutrs.c;h=7cf3e1f713de7d486191ea3dd9c521d28c5e9cdc;hb=37b3d8433b89248def810d7cfa9b110893519f65;hp=504007fff9e5211d3b29f9adaf685550f6c0ad65;hpb=6517fa53d35512887780fd07de5667940da18a9e;p=yaz-moved-to-github.git diff --git a/retrieval/d1_sutrs.c b/retrieval/d1_sutrs.c index 504007f..7cf3e1f 100644 --- a/retrieval/d1_sutrs.c +++ b/retrieval/d1_sutrs.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_sutrs.c,v $ - * Revision 1.4 1997-09-17 12:10:38 adam + * Revision 1.6 1999-11-30 13:47:12 adam + * Improved installation. Moved header files to include/yaz. + * + * Revision 1.5 1999/10/21 12:06:29 adam + * Retrieval module no longer uses ctype.h - functions. + * + * Revision 1.4 1997/09/17 12:10:38 adam * YAZ version 1.4. * * Revision 1.3 1995/12/15 16:57:11 quinn @@ -19,9 +25,7 @@ * */ -#include - -#include +#include #define NTOBUF_INDENT 2 #define NTOBUF_MARGIN 75 @@ -30,7 +34,7 @@ static int wordlen(char *b) { int l = 0; - while (*b && !isspace(*b)) + while (*b && !d1_isspace(*b)) l++, b++; return l; } @@ -83,7 +87,7 @@ static int nodetobuf(data1_node *n, int select, WRBUF b, int indent, int col) { int wlen; - while (l && isspace(*p)) + while (l && d1_isspace(*p)) p++, l--; if (!l) break; @@ -101,7 +105,7 @@ static int nodetobuf(data1_node *n, int select, WRBUF b, int indent, int col) wrbuf_putc(b, ' '); col++; } - while (l && !isspace(*p)) + while (l && !d1_isspace(*p)) { if (col > NTOBUF_MARGIN) {