Introduction
Introduction Statistics Contact Development Disclaimer Help
sync some small XML parser fixes - webdump - HTML to plain-text converter for w…
git clone git://git.codemadness.org/webdump
Log
Files
Refs
README
LICENSE
---
commit c0d1a46e3d5e9d291cb731bec2f0511553d87b48
parent 011b4885a533382d98f1aee6cb9619e280c99947
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 18 Sep 2023 19:08:01 +0200
sync some small XML parser fixes
Diffstat:
M xml.c | 4 ++--
M xml.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/xml.c b/xml.c
@@ -370,7 +370,7 @@ xml_parse(XMLParser *x)
x->taglen = 1;
x->isshorttag = isend = 0;
- /* treat processing instruction as shorttag, d…
+ /* treat processing instruction as short tag, …
if (c == '?') {
x->isshorttag = 1;
} else if (c == '/') {
@@ -399,7 +399,7 @@ xml_parse(XMLParser *x)
if (x->xmltagstartpars…
x->xmltagstart…
}
- /* call tagend for shortform o…
+ /* call tagend for short tag o…
if (x->isshorttag) {
if (x->xmltagend)
x->xmltagend(x…
diff --git a/xml.h b/xml.h
@@ -1,5 +1,5 @@
-#ifndef _XML_H_
-#define _XML_H_
+#ifndef XML_H
+#define XML_H
#include <stdio.h>
@@ -36,7 +36,7 @@ typedef struct xmlparser {
/* current tag */
char tag[1024];
size_t taglen;
- /* current tag is in shortform ? <tag /> */
+ /* current tag is in short tag ? <tag /> */
int isshorttag;
/* current attribute name */
char name[1024];
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.