added function to retrieve variable list used in linear model
[pspp] / src / data / variable.h
index 4a22d2488525a4afeeb511d597406cbb831230a5..fa7c0d6df0dff6410e1e7f0d0aece0c959171a96 100644 (file)
@@ -40,6 +40,12 @@ enum var_type
 const char *var_type_adj (enum var_type);
 const char *var_type_noun (enum var_type);
 
+/* Maximum lengths of short and long variable names.
+   Most operations support long variable names,
+   but some file formats are limited to short names. */
+#define SHORT_NAME_LEN 8        /* Short name length. */
+#define LONG_NAME_LEN 64        /* Long name length. */
+
 /* A variable's dictionary entry.  */
 struct variable
   {
@@ -58,8 +64,7 @@ struct variable
 
     /* Case information. */
     int fv, nv;                        /* Index into `value's, number of values. */
-    bool init;                  /* True if needs init and possibly reinit. */
-    bool reinit;                /* True: reinitialize; false: leave. */
+    bool leave;                 /* Leave value from case to case? */
 
     /* Data for use by containing dictionary. */
     int index;                 /* Dictionary index. */
@@ -83,6 +88,7 @@ struct variable
 
 /* Variable names. */
 bool var_is_valid_name (const char *, bool issue_error);
+bool var_is_plausible_name (const char *name, bool issue_error);
 int compare_var_names (const void *, const void *, void *);
 unsigned hash_var_name (const void *, void *);