Node:near, Next:NEPad, Previous:NE, Up:Reference
The near directive can be appended to a procedure or function
heading but is ignored by GPC. It is there for Borland compatibility,
only. (Since the GNU compilers provide a flat memory model, the
distinction between near and far pointers is void.)
near is a Borland Pascal extension.
program NearDemo;
var
p: procedure;
{$W no-near-far} { Don't warn about the uselessness of `near' }
procedure Foo; near; { `near' has no effect in GPC }
begin
WriteLn ('Foo')
end;
begin
p := Foo; { Works, despite the `near'. }
p
end.