Fix comment.
[pspp-builds.git] / src / data / format.c
index 5b9b76569d2ad2611526302391ef60764cc76141..a552f867cf338ce941a3759d5610be685c2ae676 100644 (file)
@@ -372,3 +372,19 @@ make_output_format (int type, int w, int d)
   assert (check_output_specifier (&f, 0));
   return f;
 }
+
+
+bool 
+measure_is_valid(enum measure m)
+{
+  if ( m <= 0 ) return false;
+  if ( m >= n_MEASURES) return false;
+  return true;
+}
+
+bool 
+alignment_is_valid(enum alignment a)
+{
+  if ( a >= n_ALIGN) return false;
+  return true;
+}