Revision 457 src/xml.c
| xml.c (revision 457) | ||
|---|---|---|
| 189 | 189 |
gint xml_parse_next_tag(XMLFile *file) |
| 190 | 190 |
{
|
| 191 | 191 |
gchar buf[XMLBUFSIZE]; |
| 192 |
guchar *bufp = buf;
|
|
| 192 |
gchar *bufp = buf; |
|
| 193 | 193 |
gchar *tag_str; |
| 194 | 194 |
XMLTag *tag; |
| 195 | 195 |
gint len; |
| ... | ... | |
| 229 | 229 |
return -1; |
| 230 | 230 |
} |
| 231 | 231 |
|
| 232 |
while (*bufp != '\0' && !isspace(*bufp)) bufp++; |
|
| 232 |
while (*bufp != '\0' && !g_ascii_isspace(*bufp)) bufp++;
|
|
| 233 | 233 |
if (*bufp == '\0') {
|
| 234 | 234 |
tag_str = conv_codeset_strdup(buf, file->encoding, CS_INTERNAL); |
| 235 | 235 |
if (tag_str) {
|
| ... | ... | |
| 258 | 258 |
gchar *p; |
| 259 | 259 |
gchar quote; |
| 260 | 260 |
|
| 261 |
while (isspace(*bufp)) bufp++; |
|
| 261 |
while (g_ascii_isspace(*bufp)) bufp++;
|
|
| 262 | 262 |
attr_name = bufp; |
| 263 | 263 |
if ((p = strchr(attr_name, '=')) == NULL) {
|
| 264 | 264 |
g_warning("xml_parse_next_tag(): Syntax error in tag\n");
|
| ... | ... | |
| 266 | 266 |
} |
| 267 | 267 |
bufp = p; |
| 268 | 268 |
*bufp++ = '\0'; |
| 269 |
while (isspace(*bufp)) bufp++; |
|
| 269 |
while (g_ascii_isspace(*bufp)) bufp++;
|
|
| 270 | 270 |
|
| 271 | 271 |
if (*bufp != '"' && *bufp != '\'') {
|
| 272 | 272 |
g_warning("xml_parse_next_tag(): Syntax error in tag\n");
|
Also available in: Unified diff