This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#define DERIVEDSTRUCT(a, b) typedef struct a a;

Hi

I am using DM8168. During my work with OMX i notice the following macro to define structs:

#define STRUCT(a) typedef struct a a; \
 struct a {
#define DERIVEDSTRUCT(a, b) typedef struct a a; \
 struct a {
#define ENDSTRUCT(a) a##_FIELDS };

I am workling with SlickEdit as IDE and it doesn't recognize this struct macro as is and cannot tag it as a struct .. thus, when using variable defined that struct type, i cannot access the struct fields (struct.field or pstrcutpointer->field) using the IDE

This is very very annoying... is there anyway to avoid this? can i configure SlickEdit to recognize this? Will Eclipse IDE recognize it? Or should I change these macros to use regular structs?

Thnx

Jonathan