version 1.24, 2019/04/08 22:47:34 |
version 1.25, 2019/04/08 23:40:17 |
Line 409 xml_entity(struct parse *p, const char *name) |
|
Line 409 xml_entity(struct parse *p, const char *name) |
|
TAILQ_FOREACH(dat, &p->doctype->childq, child) { |
TAILQ_FOREACH(dat, &p->doctype->childq, child) { |
if ((ccp = pnode_getattr_raw(dat, |
if ((ccp = pnode_getattr_raw(dat, |
ATTRKEY_NAME, NULL)) == NULL || |
ATTRKEY_NAME, NULL)) == NULL || |
strcmp(ccp, name) != 0 || |
strcmp(ccp, name) != 0) |
(ccp = pnode_getattr_raw(dat, |
continue; |
|
if ((ccp = pnode_getattr_raw(dat, |
|
ATTRKEY_SYSTEM, NULL)) != NULL) { |
|
parse_file(p, -1, ccp); |
|
p->flags &= ~PFLAG_SPC; |
|
return; |
|
} |
|
if ((ccp = pnode_getattr_raw(dat, |
ATTRKEY_DEFINITION, NULL)) == NULL) |
ATTRKEY_DEFINITION, NULL)) == NULL) |
continue; |
continue; |
if ((cp = strdup(ccp)) == NULL) { |
if ((cp = strdup(ccp)) == NULL) { |