[fpc-devel] AllocMem(0)<>nil
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Mar 25 18:58:28 CET 2008
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
More information about the fpc-devel
mailing list