diff --git a/ChangeLog b/ChangeLog index 8accf533..4b7212a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ Changed files: linkchecker * added AnsiColors.py and debug.py to split out some functions Changed files: a lot .py files using these things + * use yy_size_t for parser alloc definitions, fixes build errors on 64bit + architectures 1.8.2 * - ignore invalid html attribute characters diff --git a/linkcheck/parser/htmllex.c b/linkcheck/parser/htmllex.c index 6b42a7ef..28e517b7 100644 --- a/linkcheck/parser/htmllex.c +++ b/linkcheck/parser/htmllex.c @@ -6677,10 +6677,10 @@ char *yytext; #define SET_ERROR(s) /* use Pythons memory management */ -void* yyalloc (size_t bytes, void* yyscanner) { +void* yyalloc (yy_size_t bytes, void* yyscanner) { return PyMem_Malloc(bytes); } -void* yyrealloc (void* ptr, size_t bytes, void* yyscanner) { +void* yyrealloc (void* ptr, yy_size_t bytes, void* yyscanner) { return PyMem_Realloc(ptr, bytes); } void yyfree (void* ptr, void* yyscanner) { diff --git a/linkcheck/parser/htmllex.l b/linkcheck/parser/htmllex.l index 140cdb54..153f9df4 100644 --- a/linkcheck/parser/htmllex.l +++ b/linkcheck/parser/htmllex.l @@ -100,10 +100,10 @@ #define SET_ERROR(s) /* use Pythons memory management */ -void* yyalloc (size_t bytes, void* yyscanner) { +void* yyalloc (yy_size_t bytes, void* yyscanner) { return PyMem_Malloc(bytes); } -void* yyrealloc (void* ptr, size_t bytes, void* yyscanner) { +void* yyrealloc (void* ptr, yy_size_t bytes, void* yyscanner) { return PyMem_Realloc(ptr, bytes); } void yyfree (void* ptr, void* yyscanner) {