From: John Darrington Date: Sun, 31 Aug 2008 06:41:25 +0000 (+0800) Subject: Add n_missing argument to casereader_create_filter_missing X-Git-Tag: v0.7.1~50^2~69 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c400888ac9d64228138f69b473afb0083c6ca37c;p=pspp-builds.git Add n_missing argument to casereader_create_filter_missing Add a new argument to casereader_create_filter_missing, which, if non-null, receives the number of cases filtered out by the new reader. Update all callers of this function. --- diff --git a/src/data/casereader-filter.c b/src/data/casereader-filter.c index 5c46ed50..fcd264e9 100644 --- a/src/data/casereader-filter.c +++ b/src/data/casereader-filter.c @@ -266,7 +266,7 @@ static bool casereader_filter_missing_destroy (void *); is destroyed. If N_MISSING is non-null, then after reading, it will be filled - with the total number of dropped cases. + with the totla number of dropped cases. After this function is called, READER must not ever again be referenced directly. It will be destroyed automatically @@ -285,8 +285,7 @@ casereader_create_filter_missing (struct casereader *reader, cfm->var_cnt = var_cnt; cfm->class = class; cfm->n_missing = n_missing; - if (n_missing) - *n_missing = 0; + if (n_missing) *n_missing = 0; return casereader_create_filter_func (reader, casereader_filter_missing_include, casereader_filter_missing_destroy,