From f92c2ca4c218482b8e18fb385f6607486807eb13 Mon Sep 17 00:00:00 2001 From: calvin Date: Wed, 8 Jan 2003 16:36:29 +0000 Subject: [PATCH] fix build on 64bit architectures git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@733 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- ChangeLog | 2 ++ linkcheck/parser/htmllex.c | 4 ++-- linkcheck/parser/htmllex.l | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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) {