Introduction
Introduction Statistics Contact Development Disclaimer Help
improve comment: uppercase cdata -> CDATA - xmlparser - XML parser
git clone git://git.codemadness.org/xmlparser
Log
Files
Refs
README
LICENSE
---
commit dc227fd2751d09a76ac0931ce0543d90aa19fbff
parent e14d8e93235e5ca0d3afa1c1c6f025e27f11459b
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 26 Aug 2022 21:57:33 +0200
improve comment: uppercase cdata -> CDATA
Diffstat:
M xml.c | 2 +-
M xml.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xml.c b/xml.c
@@ -327,7 +327,7 @@ xml_parse(XMLParser *x)
if ((c = GETNEXT()) == EOF)
return;
- if (c == '!') { /* cdata and comments */
+ if (c == '!') { /* CDATA and comments */
for (tagdatalen = 0; (c = GETNEXT()) != EOF;) {
/* NOTE: sizeof(x->data) must be at le…
if (tagdatalen <= sizeof("[CDATA[") - …
diff --git a/xml.h b/xml.h
@@ -40,7 +40,7 @@ typedef struct xmlparser {
int isshorttag;
/* current attribute name */
char name[1024];
- /* data buffer used for tag data, cdata and attribute data */
+ /* data buffer used for tag data, CDATA and attribute data */
char data[BUFSIZ];
} XMLParser;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.