[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Found Bug when compiling to memory ?!
From: |
jo gaspode |
Subject: |
Re: [Tinycc-devel] Found Bug when compiling to memory ?! |
Date: |
Wed, 19 Nov 2003 07:28:07 +0000 |
Found the problem, when calling tcc_new the second time, some gobal
variables
are already set from the first call. Setting them to NULL solved the problem
!
Jo
TCCState *tcc_new(void)
{
const char *p, *r;
TCCState *s;
TokenSym *ts;
int i, c;
new ---> macro_ptr=NULL;
[...]
s = tcc_mallocz(sizeof(TCCState));
if (!s)
return NULL;
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail