[fpc-pascal] Does ReallocMem(p,0) always set p to nil?

2007-05-03 Thread Vincent Snijders
Hi, Consider this piece of code: var p: pointer; begin p := getmem(100); reallocmem(p,0); p := nil; end. Do I need to do p:=nil, if I want to be sure that p contains nil? I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is size=0, but the docs at http://lazarus-ccr.

Re: [fpc-pascal] set output directory for resources

2007-05-03 Thread Peter Vreman
> Vincent Snijders schreef: >> Hi, >> >> If I compile a unit which contains {$R wincemenures.res} a file named >> wincemenures.or is created in the source directory, even if I have set >> -FU or -FE. What parameter do I need to pass to the compile to move the >> .or file to the unit output director