Opened 12 years ago

Closed 10 months ago

#739 closed enhancement (wontfix)

Allow more specific foreign types

Reported by: Moritz Heidkamp Owned by: felix winkelmann
Priority: minor Milestone:
Component: compiler Version: 4.7.x
Keywords: ffi foreign types Cc:
Estimated difficulty: medium

Description

Currently, typedefs cannot be used directly but have to be replaced by an approximated equivalent FFI type, e.g. typedef unsigned int foo would have to to be referred to as unsigned-int yielding some compiler warnings. Even worse: If the type is defined differently for different platforms, say, it might not work at all. My suggestion is to allow a similar construct like (struct "foo") to say (unsigned-int "foo"). With this the compiler would know what foreign type to use but insert the correct typedef name in the generated code.

Change History (3)

comment:1 Changed 12 years ago by felix winkelmann

Milestone: 4.8.0

comment:2 Changed 8 years ago by sjamaan

Estimated difficulty: medium

comment:3 Changed 10 months ago by felix winkelmann

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.