| ??? 07/27/06 18:41 Read: times |
#121196 - Possible in theory, but the code looks strange Responding to: ???'s previous message |
#define PART_A \
U8 SDser[8] ; /* serial number */\
U8 SDaddr ; /* address assigned to sign */\
U8 SDdips ; /* dipswitch setting */\
U8 SDtype ; /* type of sign */\
U8 SDwidt ; /* width */\
U8 SDhgth /* height */
struct DUMMY_STRUCT
{
PART_A;
};
typedef struct h
{
PART_A;
// fill struct h to be 256 long
U8 SDfill[255-sizeof(struct DUMMY_STRUCT)] ;
// put this one last
// here store error number if FRAM match/update failed.
U8 SDerno ;
} SIGN_DESC;
Best regards, J. Christoph |
| Topic | Author | Date |
| fixed size struct? | 01/01/70 00:00 | |
| Not quite clear | 01/01/70 00:00 | |
| thx, but | 01/01/70 00:00 | |
| Confused! | 01/01/70 00:00 | |
| the original question is \"can you define a struct | 01/01/70 00:00 | |
| Possible in theory, but the code looks strange | 01/01/70 00:00 | |
| figured the dummy out myself but that is the road | 01/01/70 00:00 | |
| Doesn\'t have to look strange | 01/01/70 00:00 | |
| got it, thanks | 01/01/70 00:00 | |
| Aside - structure addressing | 01/01/70 00:00 | |
| which is the case in one of the instances | 01/01/70 00:00 | |
nameless struct member | 01/01/70 00:00 | |
| union of structs | 01/01/70 00:00 | |
| same as Andy | 01/01/70 00:00 | |
| Pascal | 01/01/70 00:00 |



