/*
- $Id: marcomp.c,v 1.1 2003-02-28 12:33:39 oleg Exp $
+ $Id: marcomp.c,v 1.6 2006-05-10 08:13:28 adam Exp $
marcomp.c - compiler of MARC statements.
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <yaz/yaz-util.h>
case '[': c->crrtok = LINTERVAL; break;
case ']': c->crrtok = RINTERVAL; break;
default:
- if (isspace(*(c->data+c->offset)) || *(c->data+c->offset) == '\n')
+ if (isspace(*(unsigned char *) (c->data+c->offset))
+ || *(c->data+c->offset) == '\n')
{
c->crrtok = NOP;
}
}
return psf;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+