/*
- * charybdis: an advanced ircd.
+ * Solanum: a slightly advanced ircd
* inline/stringops.h: inlined string operations used in a few places
*
* Copyright (c) 2005-2008 charybdis development team
switch (*c)
{
case 3:
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
{
c++;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
- if(c[1] == ',' && isdigit(c[2]))
+ if(c[1] == ',' && IsDigit(c[2]))
{
c += 2;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
}
}
break;
case 2:
+ case 4:
case 6:
case 7:
+ case 15:
case 22:
case 23:
case 27:
switch (*c)
{
case 3:
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
{
c++;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
- if(c[1] == ',' && isdigit(c[2]))
+ if(c[1] == ',' && IsDigit(c[2]))
{
c += 2;
- if(isdigit(c[1]))
+ if(IsDigit(c[1]))
c++;
}
}
*c2++ = *c;
break;
default:
- if (*c < 32)
+ if ((unsigned char)*c < 32)
break;
*c2++ = *c;
last_non_space = c2;