rename getchar_ignore to getnext_ignore - tscrape - twitter scraper | |
git clone git://git.codemadness.org/tscrape | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b11135a350c346d434708139583668e95b96427f | |
parent 36af5420b34500f32a5a8d3ee6601e57f3619bf8 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 18 Dec 2018 18:10:33 +0100 | |
rename getchar_ignore to getnext_ignore | |
Diffstat: | |
M tscrape.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/tscrape.c b/tscrape.c | |
@@ -48,7 +48,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; | |
@@ -143,12 +143,12 @@ xmltagstartparsed(XMLParser *x, const char *t, size_t tl,… | |
if (!strcasecmp(t, "script")) { | |
ignorestate = endtag = "</script>"; | |
getnext = x->getnext; /* for restore */ | |
- x->getnext = getchar_ignore; | |
+ x->getnext = getnext_ignore; | |
return; | |
} else if (!strcasecmp(t, "style")) { | |
ignorestate = endtag = "</style>"; | |
getnext = x->getnext; /* for restore */ | |
- x->getnext = getchar_ignore; | |
+ x->getnext = getnext_ignore; | |
return; | |
} | |