improve comment: uppercase cdata -> CDATA - xmlparser - XML parser
HTML git clone git://git.codemadness.org/xmlparser
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit dc227fd2751d09a76ac0931ce0543d90aa19fbff
DIR parent e14d8e93235e5ca0d3afa1c1c6f025e27f11459b
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
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(-)
---
DIR 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 least sizeof("[CDATA[") */
if (tagdatalen <= sizeof("[CDATA[") - 1)
DIR 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;