--- libwww/Library/src/SGML.c 1997/03/21 19:33:28 1.42 +++ libwww/Library/src/SGML.c 1998/02/01 19:04:23 1.43 @@ -3,7 +3,7 @@ ** ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. -** @(#) $Id: SGML.c,v 1.42 1997/03/21 19:33:28 frystyk Exp $ +** @(#) $Id: SGML.c,v 1.43 1998/02/01 19:04:23 frystyk Exp $ ** ** This module implements an HTStream object. To parse an ** SGML file, create this object which is a parser. The object @@ -464,7 +464,7 @@ PRIVATE int SGML_write (HTStream * conte ** Handle Entities */ case S_entity: - if (isalnum(c)) + if (isalnum((int) c)) HTChunk_putc(string, c); else { @@ -484,7 +484,7 @@ PRIVATE int SGML_write (HTStream * conte /* Character reference */ case S_cro: - if (isalnum(c)) + if (isalnum((int)c)) /* accumulate a character NUMBER */ HTChunk_putc(string, c); else @@ -511,7 +511,7 @@ PRIVATE int SGML_write (HTStream * conte case S_tag: /* new tag */ handle_S_tag: - if (isalnum(c)) + if (isalnum((int)c)) HTChunk_putc(string, c); else { /* End of tag name */ @@ -553,7 +553,7 @@ PRIVATE int SGML_write (HTStream * conte S_tag_gap: context->state = S_tag_gap; case S_tag_gap: /* Expecting attribute or > */ - if (WHITE(c)) + if (isspace((int) c)) break; /* Gap between attributes */ if (c == '>') @@ -569,7 +569,7 @@ PRIVATE int SGML_write (HTStream * conte context->state = S_attr; string->size = context->token; case S_attr: - if (WHITE(c) || c == '>' || c == '=') + if (isspace((int) c) || c == '>' || c == '=') goto got_attribute_name; else HTChunk_putc(string, c); @@ -587,7 +587,7 @@ PRIVATE int SGML_write (HTStream * conte string->size = context->token; context->state = S_attr_gap; case S_attr_gap: /* Expecting attribute or = or > */ - if (WHITE(c)) + if (isspace((int) c)) break; /* Gap after attribute */ if (c == '>') @@ -599,7 +599,7 @@ PRIVATE int SGML_write (HTStream * conte break; case S_equals: /* After attr = */ - if (WHITE(c)) + if (isspace((int) c)) break; /* Before attribute value */ if (c == '>') @@ -619,7 +619,7 @@ PRIVATE int SGML_write (HTStream * conte context->state = S_value; string->size = context->token; case S_value: - if (WHITE(c) || c == '>') + if (isspace((int) c) || c == '>') { HTChunk_terminate(string); handle_attribute_value(context); @@ -655,7 +655,7 @@ PRIVATE int SGML_write (HTStream * conte break; case S_end: /* current_attribute_number = INVALID; if (c != '>') { - if (!WHITE(c)) + if (!isspace((int) c)) TRACE2("`data, c); context->state = S_junk_tag;