char* htmlEntityUTF8 (char* s, graph_t* g)
{
static graph_t* lastg;
- static boolean warned;
+ static bool warned;
char* ns;
agxbuf xb;
unsigned char c;
if (lastg != g) {
lastg = g;
- warned = 0;
+ warned = false;
}
agxbinit(&xb, 0, NULL);
uc = -1;
if (!warned) {
agerr(AGWARN, "UTF8 codes > 4 bytes are not currently supported (graph %s) - treated as Latin-1. Perhaps \"-Gcharset=latin1\" is needed?\n", agnameof(g));
- warned = 1;
+ warned = true;
}
c = cvtAndAppend (c, &xb);
}
else {
if (!warned) {
agerr(AGWARN, "Invalid %d-byte UTF8 found in input of graph %s - treated as Latin-1. Perhaps \"-Gcharset=latin1\" is needed?\n", uc + 1, agnameof(g));
- warned = 1;
+ warned = true;
}
c = cvtAndAppend (c, &xb);
break;