diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
commit | fe4e07657381e7db947630981a1d34410e4753e3 (patch) | |
tree | 7daf065a73ab29fd954f81e40dfde9f6e66a022a /streamhtmlparser/htmlparser.c | |
parent | b2f35389b68fb1e58ea13dc273fdebaf534a325c (diff) | |
download | crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.gz crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.bz2 |
streamhtmlparser works on Windows
Diffstat (limited to 'streamhtmlparser/htmlparser.c')
-rwxr-xr-x[-rw-r--r--] | streamhtmlparser/htmlparser.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/streamhtmlparser/htmlparser.c b/streamhtmlparser/htmlparser.c index c88486a..3e820f7 100644..100755 --- a/streamhtmlparser/htmlparser.c +++ b/streamhtmlparser/htmlparser.c @@ -38,7 +38,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <strings.h> #include <ctype.h> #include <assert.h> @@ -77,7 +76,7 @@ static struct entityfilter_table_s { /* Utility functions */ /* Similar to strncpy() but avoids the NULL padding. */ -static inline void nopad_strncpy(char *dst, const char *src, size_t dst_size, +static INLINE void nopad_strncpy(char *dst, const char *src, size_t dst_size, size_t src_size) { size_t size; @@ -103,7 +102,7 @@ static int state_external(int st) * * From: http://www.w3.org/TR/html401/struct/text.html#h-9.1 */ -static inline int html_isspace(char chr) +static INLINE int html_isspace(char chr) { if (chr == ' ' || chr == '\t' || chr == '\n' || chr == '\r') { return 1; |