Add n_missing argument to casereader_create_filter_missing
authorJohn Darrington <john@marilyn.intra>
Sun, 31 Aug 2008 06:41:25 +0000 (14:41 +0800)
committerJohn Darrington <john@marilyn.intra>
Sat, 6 Sep 2008 01:22:33 +0000 (09:22 +0800)
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

index 5c46ed50dba436d1584a320e134be8fefc5e5de0..fcd264e9dc35e08f8d7737b83973ca9c5d4f9e40 100644 (file)
@@ -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,