News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Parser doesn't work for typedef struct with attribute

Started by oli82, September 01, 2010, 02:27:02 PM

Previous topic - Next topic

oli82

I have the following code:

typedef struct struct1 __attribute__ ((packed)) {
   unsigned char u8Char1;
} struct1_T;

With this "__attribute__ ((packed))" the parser doesn't recognise the struct and and it doesn't show up in the symbols list and it isn't suggested when I start to write stru...
If I comment this out it works just fine.

In a more complex code with several structs the little pop-up which should show the members does not show no members but the wrong ones from another struct without this typedef. I could life with no suggestions but the wrong ones are quite confusing.

Does anybody know this error and is there anything I can do?

blueshake

em, it seems not support such definition like this struct1 __attribute__ ((packed))


only work for :

typedef struct struct1 __attribute__ {
   unsigned char u8Char1;
} struct1_T;
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?