diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-27 21:24:32 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-27 21:24:32 -0400 |
commit | 0848ff3bb41572d2e850360f220369ccd62c715b (patch) | |
tree | f94fc3f9a549fce6ce226729d47baf0e5285dd01 /copy.c | |
parent | 7cf5a8735ecbd37faf5e9f740d5f1a49939eea07 (diff) |
removed StructDef.constants
Diffstat (limited to 'copy.c')
-rw-r--r-- | copy.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -107,13 +107,6 @@ static void copy_struct(Copier *c, StructDef *out, StructDef *in) { *fout = *fin; fout->type = copy_type_(c, fin->type); } - out->constants = NULL; - size_t nconstants = arr_len(in->constants); - arr_set_lena(&out->constants, nconstants, c->allocr); - for (size_t i = 0; i < nconstants; ++i) { - copy_decl(c, out->constants[i] = allocr_malloc(c->allocr, sizeof *out->constants[i]), - in->constants[i]); - } } size_t nparams = arr_len(in->params); out->params = NULL; |