Categorical value cache added
[pspp-builds.git] / src / var.h
index ae81fa8c27a5bd4152517666b81eec0c43438e51..2219dfb30e6ac8687385c33b08927c99c512dcb2 100644 (file)
--- a/src/var.h
+++ b/src/var.h
@@ -24,7 +24,7 @@
 #include <stddef.h>
 #include "config.h"
 #include <stdbool.h>
-
+#include "cat.h"
 #include "format.h"
 #include "missing-values.h"
 
@@ -74,6 +74,11 @@ struct variable
     /* Each command may use these fields as needed. */
     void *aux;
     void (*aux_dtor) (struct variable *);
+
+    /* Values of a categorical variable which.  Procedures need
+       vectors with binary entries, so any variable of type ALPHA will
+       have its values stored here. */
+    struct cat_vals *obs_vals;
   };
 
 /* Variable names. */