PMunch/futhark

Futhark doesn't understand C defines that define type aliases.

Yardanico opened this issue · 1 comments

For example:

#define LRESULT long

Gets turned into something like:

when not declared(Lresult):
  when long is typedesc:
    type
      Lresult* = long        ## Generated based on /home/dian/Projects/nsciter/sciter-js-sdk/include/sciter-x-types.h:71:11
  else:
    const
      Lresult* = long        ## Generated based on /home/dian/Projects/nsciter/sciter-js-sdk/include/sciter-x-types.h:71:11
# somewhere else in the file
when not declared(long):
  type
    long* = distinct object

The problem here is actually that the right hand side should get checked if it is a C-type and turned into a c prefixed type (in this case clong).