diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-08-26 21:55:35 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-08-26 21:55:35 +0200 |
commit | 60e402d0f2c086dbbbd21436bb1b3aa5ad9b77d6 (patch) | |
tree | 277e9de2b8480b906d102c72579924643571e953 | |
parent | 411f5e83c38da298175b69c572485a421f44fb28 (diff) |
improve comment: uppercase cdata -> CDATA
-rw-r--r-- | xml.c | 2 | ||||
-rw-r--r-- | xml.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) @@ -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; |