| ??? 10/20/03 14:23 Read: times |
#56941 - SDCC: Unions inside structs |
Hello everyone,
though I tryed to google, I could'nt find a solution to my problem. Can you help me? (Very similar to Kernighan & Ritchi, C, Chapter 6.8, but broken down to the roots by myself) struct { char data_id; union { char c; int i; } data; } message; void main (void) { ... message.data_id = 0; // This works message.data.c = 0; // => Syntax error (It doesn't compile) ... } How can I make this work in SDCC? Thank you, Mike |
| Topic | Author | Date |
| SDCC: Unions inside structs | 01/01/70 00:00 | |
| RE: SDCC: Unions inside structs | 01/01/70 00:00 | |
| RE: SDCC: Unions inside structs | 01/01/70 00:00 | |
| RE: SDCC: Unions inside structs | 01/01/70 00:00 | |
| RE: SDCC: Unions inside structs | 01/01/70 00:00 | |
| Extensions | 01/01/70 00:00 | |
RE: SDCC: Unions inside structs | 01/01/70 00:00 |



