rename getchar_ignore to getnext_ignore - grabtitle - stupid HTML title grabber | |
git clone git://git.codemadness.org/grabtitle | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit db328d0b3f3bb6988660f62428aed112618ca340 | |
parent dcb355c8766619ad66061167c55b9f44c6ab7569 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 18 Dec 2018 18:11:29 +0100 | |
rename getchar_ignore to getnext_ignore | |
Diffstat: | |
M grabtitle.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/grabtitle.c b/grabtitle.c | |
@@ -24,7 +24,7 @@ static int (*getnext)(void); | |
or style tags. If you see some </script> tag in a CDATA or comment | |
section then e-mail W3C and tell them the web is too complex. */ | |
static inline int | |
-getchar_ignore(void) | |
+getnext_ignore(void) | |
{ | |
int c; | |
@@ -83,11 +83,11 @@ xmltagstart(XMLParser *p, const char *t, size_t tl) | |
if (tl == 6 && !strcasecmp(t, "script")) { | |
state = endtag = "</script>"; | |
getnext = p->getnext; /* for restore */ | |
- p->getnext = getchar_ignore; | |
+ p->getnext = getnext_ignore; | |
} else if (tl == 5 && !strcasecmp(t, "style")) { | |
state = endtag = "</style>"; | |
getnext = p->getnext; /* for restore */ | |
- p->getnext = getchar_ignore; | |
+ p->getnext = getnext_ignore; | |
} else if (tl == 5 && !strcasecmp(t, "title")) { | |
p->xmltagend = xmltagend; | |
p->xmlcdata = p->xmldata = xmldata; |