Thread (125 messages) flat view 125 messages, 6 authors, 2021-08-30

Re: [PATCH v2 07/25] reftable: (de)serialization for the polymorphic record type.

From: Han-Wen Nienhuys <hidden>
Date: 2021-08-17 13:44:35

On Mon, Aug 16, 2021 at 11:54 PM Carlo Marcelo Arenas Belón
[off-list ref] wrote:
On Mon, Aug 16, 2021 at 08:16:58PM +0000, Han-Wen Nienhuys via GitGitGadget wrote:
quoted
From: Han-Wen Nienhuys <redacted>
...
quoted
+     union {
+             struct {
+                     uint8_t *new_hash;
+                     uint8_t *old_hash;
+                     char *name;
+                     char *email;
+                     uint64_t time;
+                     int16_t tz_offset;
+                     char *message;
+             } update;
+     };
the use of an anonymous union here (which requires C11) could be made
C89 compatible without any impact AFAIK by doing instead:
Thanks for the pointer. I opted to do it the C89 way instead, for
consistency with reftable_ref_record.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help