parsing works, at least the basics
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Feb 2022 18:45:55 +0000 (10:45 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Apr 2022 01:48:55 +0000 (18:48 -0700)
src/language/stats/ctables.c

index 1d27331fcf7bcad335ed48468e84754936d5ac88..9dd1fd55a6b43346250bb43b8ed13f7ada6002dc 100644 (file)
@@ -4061,6 +4061,7 @@ ctables_parse_pproperties (struct lexer *lexer, struct ctables *ct)
           msg (SE, _("Unknown computed category &%s."), lex_tokcstr (lexer));
           goto error;
         }
+      lex_get (lexer);
 
       if (n_pcs >= allocated_pcs)
         pcs = x2nrealloc (pcs, &allocated_pcs, sizeof *pcs);
@@ -4139,6 +4140,7 @@ cmd_ctables (struct lexer *lexer, struct dataset *ds)
     .look = pivot_table_look_unshare (pivot_table_look_ref (
                                         pivot_table_look_get_default ())),
     .vlabels = vlabels,
+    .postcomputes = HMAP_INITIALIZER (ct->postcomputes),
     .hide_threshold = 5,
   };
   ct->look->omit_empty = false;