This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What does coding-style tells about integer types for pointers ?
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 8 Mar 2007 16:56:09 +0100
- Subject: What does coding-style tells about integer types for pointers ?
Hi,
while porting gcc to the new target x86_64-pc-mingw32 I noticed, that on
many places the long type is wrongly used as equivalent for pointers. This
leads for this MS compatible target to some problems, because the long is
just 4 bytes long and the pointer 8 bytes. I found this problems until now
in libc++, libiberty. There are ISO types defined for this case, as
intptr_t and uintptr_t. Is there something defined in the coding style ?
Regards,
i.A. Kai Tietz