Typedefs
Currently, typedefs are not supported:
Submitted by Guido Wachsmuth on 4 April 2013 at 18:30typedef int8 foo; foo x; typedef struct s { ... } structtype; typedef struct { ... } anotherstructtype;
Issue Log
I don’t think the typedef for structs are required, but you definitely want to typedef types to other types. This is required if a set of functions need to return the same type, and you want to change this type depending on the platform. It also makes it easy to change the type of a set of functions manually, for example if an extra flag needs to be added which would require more bits.
The purpose of typedef is to assign alternative names to existing types. This is done because the implementation of several basic type can be different for each compiler, for example the right size of an integer is always a problem also if the compiler is standard compliant.
In this project we already provide a punctual way to avoid this kind of ambiguity because our basic data types are suffixed with the number of bits required, therefore in my opinion the typedef can be unsupported.
Log in to post comments