Untagged structs in ChibiOS
Posted: Sat Sep 22, 2018 2:11 pm
Hi, I've noticed at least one (SPIConfig) untagged struct.
I've been toying with introducing more C++ into my pet projects, and one thing this prevents is doing C++ forward declaration. Is this done for a specific reason in Chibi, or just an oversight/nobody cared until me?
Specifically the difference is between
typedef struct {
...
} SPIConfig;
and
typedef struct SPIConfig {
...
} SPIConfig;
I'd be happy to submit patches, but wanted to ask first in case they have to remain in their current state.
I've been toying with introducing more C++ into my pet projects, and one thing this prevents is doing C++ forward declaration. Is this done for a specific reason in Chibi, or just an oversight/nobody cared until me?
Specifically the difference is between
typedef struct {
...
} SPIConfig;
and
typedef struct SPIConfig {
...
} SPIConfig;
I'd be happy to submit patches, but wanted to ask first in case they have to remain in their current state.