X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmissing-values.c;h=c4d40baae13c0c25c23d9bdd3226837a6c438844;hb=679e253a4777564db48ccec70b8ce2f6e5b7e46b;hp=c8f6b7fe5e645fd5e9df931eefb168914acfa6ba;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp diff --git a/src/data/missing-values.c b/src/data/missing-values.c index c8f6b7fe5e..c4d40baae1 100644 --- a/src/data/missing-values.c +++ b/src/data/missing-values.c @@ -1,20 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 2005 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #include #include "missing-values.h" @@ -210,11 +208,11 @@ mv_replace_value (struct missing_values *mv, const union value *v, int idx) } - +/* Returns the number of individual (not part of a range) missing + values in MV. */ int mv_n_values (const struct missing_values *mv) { - assert(mv_has_value(mv)); return mv->type & 3; }