[fpc-pascal] Porting C variable declaration
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat May 4 10:38:08 CEST 2013
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.
More information about the fpc-pascal
mailing list