Open Xenoamor opened 5 years ago
I've scrubbed this in #176 as I really didn't like the look of it
I guess this is one of the places where a static allocation would be suitable.
As far as I'm aware this isn't valid C at all. It still baffles me how it compiles
I think it is Well, sort of, because gcc is the only compiller I've used that has it implemented;)
I had no idea this was a thing. Seems pretty dangerous to me if you're trying to avoid the heap
Any ideas how the following code compiles? https://github.com/kanflo/opendps/blob/c1a8ab69d97ee3a329a2283ec88c49150537978c/opendps/uframe.h#L44 https://github.com/kanflo/opendps/blob/c1a8ab69d97ee3a329a2283ec88c49150537978c/opendps/uframe.h#L47-L52 https://github.com/kanflo/opendps/blob/c1a8ab69d97ee3a329a2283ec88c49150537978c/opendps/protocol_handler.c#L348-L351
I've never seen
uint8_t buffer[variable];
compile before