[fpc-devel] intptr_t and Linux

ik idokan at gmail.com
Sun Apr 24 18:30:39 CEST 2011


On Sun, Apr 24, 2011 at 18:43, Marco van de Voort <marcov at stack.nl> wrote:

> In our previous episode, ik said:
> >
> > I see that intptr_t type is defined for all supported Unix that are not
> > Linux.
>
> I guess this went to the wrong list. I can't find any intptr_t in e.g. the
> FreeBSD rtl.
>

Right, my bad.

I searched again and you are right:

ik at ik-office:~/projects/fpc/fpc/rtl$ grep -in intptr_t ./* -R | grep -v svn
./netbsd/sysnr.inc:144:  { syscall: "sbrk" ret: "int" args: "intptr_t"  }
./netwlibc/libc.pp:127:   Pintptr_t = ^intptr_t;
./netwlibc/libc.pp:128:   intptr_t = longint;
./netwlibc/libc.pp:130:   Puintptr_t = ^uintptr_t;
./netwlibc/libc.pp:131:   uintptr_t = dword;
./netwlibc/libc.pp:782:function sbrk(incr:intptr_t):pointer;cdecl;external
libc_nlm name 'sbrk';
./solaris/ptypes.inc:129:    uintptr_t = ^cuint;

But why doesn't it included ?
It does exists on stdint.h and I can see that gcc C's preprocessor add it to
final result.

Ido

> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110424/d1ff2f37/attachment.html>


More information about the fpc-devel mailing list