On 25 Mar 2008, at 18:54, Vincent Snijders wrote:
Jonas Maebe schreef:
On 25 Mar 2008, at 18:30, Peter Vreman wrote:
Current behaviour is compatible with TP7 that gave a valid pointer
back pointing to heapend. See
also the comment.
I thought so too, but I tested and TP7 stores nil in p when doing
getmem(p,0) (under DosBox).
But AllocMem(0)?
AllocMem does not exist in TP7. And the code posted by the original
poster comes from SysGetMem, not from AllocMem (which is just a
wrapper for getmem+fillchar).
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel