Robert Edmonds 638c54d4db GenerateStructDefinition(): Reset vars["opt_comma"] when processing multiple oneofs
This commit fixes #251, which causes incorrect code to be generated when
there are multiple oneofs in the same message.

In #221, we added code to force int-sizing for oneof enums, but we only
set vars["opt_comma"] initially, before entering the loop over the
message's oneofs. This caused commas to be omitted when generating the
enums for subsequent oneofs after the first oneof.

This commit resets vars["opt_comma"] every time through the loop that
generates the enum declarations for the message's oneofs.
2017-02-25 15:52:39 -05:00
..
2014-11-19 23:07:23 -08:00
2015-10-30 15:54:00 -07:00
2015-10-30 15:54:00 -07:00
2015-10-30 15:54:00 -07:00
2016-02-17 10:58:43 +01:00