X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmissing-values.c;h=0fc9d01af01ae5a7842aebf3a8285217485de3ca;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=c1a7469158ead5204e6da7fa5a4432ad36fc3bbb;hpb=04d2c99833753252b724dd9d4f15cc3a80b6bec8;p=pspp-builds.git diff --git a/src/data/missing-values.c b/src/data/missing-values.c index c1a74691..0fc9d01a 100644 --- a/src/data/missing-values.c +++ b/src/data/missing-values.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2005, 2009 Free Software Foundation, Inc. + Copyright (C) 2005, 2009, 2011 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 @@ -15,12 +15,15 @@ along with this program. If not, see . */ #include -#include + +#include "data/missing-values.h" + #include #include -#include -#include -#include + +#include "data/variable.h" +#include "libpspp/assertion.h" +#include "libpspp/str.h" /* Types of user-missing values. Invisible--use access functions defined below instead. */ @@ -160,7 +163,7 @@ mv_add_value (struct missing_values *mv, const union value *v) Returns true if successful, false if MV has no more room for missing values or if S is not an acceptable missing value. */ bool -mv_add_str (struct missing_values *mv, const char s[]) +mv_add_str (struct missing_values *mv, const uint8_t s[]) { union value v; bool ok; @@ -404,7 +407,7 @@ is_num_user_missing (const struct missing_values *mv, double d) MV must be a set of string missing values. S[] must contain exactly as many characters as MV's width. */ static bool -is_str_user_missing (const struct missing_values *mv, const char s[]) +is_str_user_missing (const struct missing_values *mv, const uint8_t s[]) { const union value *v = mv->values; assert (mv->width > 0); @@ -456,7 +459,7 @@ mv_is_num_missing (const struct missing_values *mv, double d, MV must be a set of string missing values. S[] must contain exactly as many characters as MV's width. */ bool -mv_is_str_missing (const struct missing_values *mv, const char s[], +mv_is_str_missing (const struct missing_values *mv, const uint8_t s[], enum mv_class class) { assert (mv->width > 0);