diff -r 9e8e1ba5ca46 -r 8b2a31dea131 lib/C/iec_types_all.h --- a/lib/C/iec_types_all.h Sun Jul 06 23:31:08 2014 +0100 +++ b/lib/C/iec_types_all.h Sun Jul 13 12:26:58 2014 +0100 @@ -86,6 +86,8 @@ IEC_##type fvalue;\ } __IEC_##type##_p; + + #define __DECLARE_DERIVED_TYPE(type, base)\ typedef base type;\ typedef __IEC_##base##_t __IEC_##type##_t;\ @@ -121,6 +123,11 @@ } type;\ __DECLARE_COMPLEX_STRUCT(type) +#define __DECLARE_REFTO_TYPE(type, name)\ +typedef name * type;\ +__DECLARE_COMPLEX_STRUCT(type) + + /* Those typdefs clash with windows.h */ /* i.e. this file cannot be included aside windows.h */ __ANY(__DECLARE_IEC_TYPE)