* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.18 2004-12-13 14:21:55 heikki Exp $
+ * $Id: log.c,v 1.19 2004-12-30 00:11:00 adam Exp $
*/
/**
{
const char *p;
int i;
- int found;
- int negated;
char clean[255] = "";
char *n = clean;
while (*str)
{
- found = 0;
- negated=0;
+ int found = 0;
+ int negated = 0;
for (p = str; *p && *p != ','; p++)
;
if (*str=='-')
negated=1;
str++;
}
- if (isdigit(*str))
+ if (isdigit(*(unsigned char *) str))
{
level = atoi (str);
found = 1;
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: marcdisp.c,v 1.10 2004-11-26 11:01:05 adam Exp $
+ * $Id: marcdisp.c,v 1.11 2004-12-30 00:12:13 adam Exp $
*/
/**
/* ballout if bsize is known and record_length is less than that */
if (bsize != -1 && record_length > bsize)
return -1;
- if (isdigit(buf[10]))
+ if (isdigit(((const unsigned char *) buf)[10]))
indicator_length = atoi_n (buf+10, 1);
else
indicator_length = 2;
- if (isdigit(buf[11]))
+ if (isdigit(((const unsigned char *) buf)[11]))
identifier_length = atoi_n (buf+11, 1);
else
identifier_length = 2;
* Copyright (c) 1995-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: matchstr.c,v 1.2 2004-10-15 00:19:00 adam Exp $
+ * $Id: matchstr.c,v 1.3 2004-12-30 00:14:00 adam Exp $
*/
/**
{
while (*s1 && *s2)
{
- char c1 = *s1;
- char c2 = *s2;
+ unsigned char c1 = *s1;
+ unsigned char c2 = *s2;
if (c2 == '?')
return 0;
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: odr_util.c,v 1.5 2004-10-15 00:19:00 adam Exp $
+ * $Id: odr_util.c,v 1.6 2004-12-30 00:14:38 adam Exp $
*/
/**
* \file odr_util.c
const char *p = str;
Odr_oid *ret;
- if (!isdigit(*str))
+ if (!isdigit(*(const unsigned char *) str))
return 0;
while ((p = strchr(p, '.')))
num++, p++;
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: oid.c,v 1.5 2004-12-22 23:45:13 adam Exp $
+ * $Id: oid.c,v 1.6 2004-12-30 00:12:54 adam Exp $
*/
/**
int val = 0, i = 0, oid[OID_SIZE];
struct oident *oident;
- while (isdigit (*name))
+ while (isdigit (*(const unsigned char *) name))
{
val = val*10 + (*name - '0');
name++;
struct oident_list *ol;
oid_init ();
- if (isdigit (*name))
+ if (isdigit (*(const unsigned char *) name))
return oid_getval_raw (name);
for (ol = oident_table; ol; ol = ol->next)
if (!yaz_matchstr(ol->oident.desc, name))
* Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: read-grs.c,v 1.10 2004-12-13 14:21:59 heikki Exp $
+ * $Id: read-grs.c,v 1.11 2004-12-30 00:18:04 adam Exp $
*/
/*
while (fgets(buf = line, 512, f))
{
- while (*buf && isspace(*buf))
+ while (*buf && isspace(*(unsigned char *) buf))
buf++;
if (!*buf || *buf == '#')
continue;
if (!(buf = strchr(buf, ')')))
return 0;
buf++;
- while (*buf && isspace(*buf))
+ while (*buf && isspace(*(unsigned char *) buf))
buf++;
if (!*buf)
return 0;
* Copyright (c) 2002, Index Data.
* See the file LICENSE for details.
*
- * $Id: read-marc.c,v 1.4 2002-12-16 13:13:53 adam Exp $
+ * $Id: read-marc.c,v 1.5 2004-12-30 00:18:04 adam Exp $
*/
/*
int val = 0;
while (--n >= 0)
{
- if (isdigit(*buf))
+ if (isdigit(*(const unsigned char *) buf))
val = val*10 + (*buf - '0');
buf++;
}
* Copyright (c) 1995-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: ztest.c,v 1.67 2004-11-18 15:18:14 heikki Exp $
+ * $Id: ztest.c,v 1.68 2004-12-30 00:18:04 adam Exp $
*/
/*
memcpy(term, q->term->term->u.general->buf, q->term->term->u.general->len);
term[q->term->term->u.general->len] = '\0';
for (p = term; *p; p++)
- if (islower(*p))
+ if (islower(*(unsigned char *) p))
*p = toupper(*p);
fseek(f, 0, SEEK_SET);