/* PSPP - computes sample statistics.
Copyright (C) 2005 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
/* Types of user-missing values.
Invisible--use access functions defined below instead. */
-enum mv_type
+enum mv_type
{
MV_NONE = 0, /* No user-missing values. */
MV_1 = 1, /* One user-missing value. */
/* Missing values.
Opaque--use access functions defined below. */
-struct missing_values
+struct missing_values
{
- unsigned type; /* Number and type of missing values. */
+ enum mv_type type; /* Number and type of missing values. */
int width; /* 0=numeric, otherwise string width. */
union value values[3]; /* Missing values. [y,z] are the range. */
};
void mv_pop_range (struct missing_values *, double *low, double *high);
void mv_peek_range (const struct missing_values *, double *low, double *high);
-bool mv_is_resizable (struct missing_values *, int width);
+bool mv_is_resizable (const struct missing_values *, int width);
void mv_resize (struct missing_values *, int width);
typedef bool mv_is_missing_func (const struct missing_values *,