};
static struct ccase *
-project_case (struct ccase *old, casenumber idx UNUSED, const void *project_)
+project_case (struct ccase *old, void *project_)
{
const struct casereader_project *project = project_;
struct ccase *new = case_create (subcase_get_proto (&project->new_sc));
return true;
}
+static const struct casereader_translator_class projection_class =
+ {
+ project_case,
+ destroy_projection,
+ };
+
/* Returns a casereader in which each row is obtained by extracting the subcase
SC from the corresponding row of SUBREADER. */
struct casereader *
subcase_add_proto_always (&project->new_sc, proto);
return casereader_translate_stateless (subreader, proto,
- project_case, destroy_projection,
- project);
+ &projection_class, project);
}
}