[fpc-pascal] Porting C variable declaration

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Sat May 4 20:50:58 CEST 2013



Thanks Jonas! 

Jonas Maebe schreef op 4 mei '13: 

> On 04 May 2013, at 10:25, Darius Blaszyk wrote:
> 
>> I came across a pointer variable in C which also get's assigned integer values. Anyone has an idea how to port this in FPC? The variable is declared as: static void *x=0; Later on it get's assigned as this: x= 1;
> 
> var
> x: pointer;
> begin
> x:=nil; { 0 is guaranteed to map to NULL/nil in C }
> x:=pointer(1);
> end.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal [1]


Links:
------
[1] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130504/19ca6b25/attachment.html>


More information about the fpc-pascal mailing list