2008/5/26 Dmitry Timoshkov dmitry@codeweavers.com:
"Kai Blin" kai.blin@gmail.com wrote:
- {FROM_PROTOCOL_INFO, FROM_PROTOCOL_INFO},
};
Although it was the case before, it's a mistake to have a comma after the last struct member initializer.
It is? K&R seems to use both, so I preferred to keep it similar to all the other struct member initializers.
I said "a mistake" not "an error". Although the compiler forgives this, what the last comma is serving for?
The C standard explicitly allows the comma at the end of initializer lists, this would be a style issue at best.