From 60e402d0f2c086dbbbd21436bb1b3aa5ad9b77d6 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 26 Aug 2022 21:55:35 +0200 Subject: improve comment: uppercase cdata -> CDATA --- xml.c | 2 +- xml.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xml.c b/xml.c index 3bd9557..a82053e 100644 --- a/xml.c +++ b/xml.c @@ -292,7 +292,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) diff --git a/xml.h b/xml.h index cef4a05..ad7d26b 100644 --- a/xml.h +++ b/xml.h @@ -34,7 +34,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; -- cgit v1.2.3