From c400888ac9d64228138f69b473afb0083c6ca37c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 31 Aug 2008 14:41:25 +0800 Subject: [PATCH] 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. --- src/data/casereader-filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, -- 2.30.2