caseproto: Allocate base struct and widths separately.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 4 Mar 2023 00:43:52 +0000 (16:43 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 5 Mar 2023 19:23:16 +0000 (11:23 -0800)
commit4b0fcb170ee937ea28a51fa4fed37c012629a3ab
tree299d26f75cc1b4286a9ecfc3e251f33d17cc0d78
parent54b3aa8432383287c75b9baf954b7bf887126a0c
caseproto: Allocate base struct and widths separately.

This will allow constructing a caseproto from a passed-in array
without copying it.
src/data/caseproto.c
src/data/caseproto.h