w64 native support needs type abstraction for long

Paul Brook paul@codesourcery.com
Wed Apr 4 13:22:00 GMT 2007


On Wednesday 04 April 2007 10:13, Kai Tietz wrote:
> Hello,
>
> I am currently on the port of binutils (especially of libbfd for gdb) to
> support native windows 64. Here I noticed, that in some places a "long"
> type is used for holding pointer values (e.g. in
> "/include/coff/internal.h" for structure internal_syment). I would like to
> introduce for this the type "longptr_t" defined as follows
>
> and replace these by longptr_t/ulongptr_t. (AFAIK size_t or intptr_t is
> not defined on all platforms).

Either use one of the standard types, or call it something like bfd_hostptr. 
Please don't randomly invent new types that look and sound like they are 
standard.

Paul



More information about the Binutils mailing list