SMOLNET PORTAL home about changes
improve comment: uppercase cdata -> CDATA - sfeed - RSS and Atom parser
(URL) git clone git://git.codemadness.org/sfeed (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 60e402d0f2c086dbbbd21436bb1b3aa5ad9b77d6
(DIR) parent 411f5e83c38da298175b69c572485a421f44fb28
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Fri, 26 Aug 2022 21:55:35 +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
@@ -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)
(DIR) diff --git 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;
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed/commit/60e402d0f2c08...
Content-Typeapplication/gopher-menu; charset=utf-8