Currently, typedefs are not supported:

typedef int8 foo;

foo x;

typedef struct s {
  ...
} structtype;

typedef struct {
  ...
} anotherstructtype;
Submitted by Guido Wachsmuth on 4 April 2013 at 18:30

On 24 April 2013 at 21:36 Daco Harkes tagged basec

On 25 April 2013 at 15:07 Gabriël Konat commented:

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.


On 2 May 2013 at 14:24 Daco Harkes tagged @dario

On 4 May 2013 at 15:56 Dario Nesi commented:

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.


On 23 May 2013 at 12:46 Daco Harkes closed this issue.

Log in to post comments