fix build on 64bit architectures

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@733 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-01-08 16:36:29 +00:00
parent 6d40be35e2
commit f92c2ca4c2
3 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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) {

View file

@ -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) {