X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasereader-provider.h;h=2069eb678de9b652d5bb16cd91f399850be1b163;hb=c1b1583b96cc05a2bf9f3f6d01bbfa063fafb253;hp=31d8a6d4c88e67a6afab5ad2e372c0b5041f6790;hpb=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp diff --git a/src/data/casereader-provider.h b/src/data/casereader-provider.h index 31d8a6d4c8..2069eb678d 100644 --- a/src/data/casereader-provider.h +++ b/src/data/casereader-provider.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 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 @@ -36,7 +36,7 @@ #ifndef DATA_CASEREADER_PROVIDER_H #define DATA_CASEREADER_PROVIDER_H 1 -#include +#include "data/casereader.h" /* Casereader class for sequential data sources. */ struct casereader_class @@ -112,7 +112,7 @@ struct casereader_class struct casereader * casereader_create_sequential (const struct taint *, - size_t value_cnt, casenumber case_cnt, + const struct caseproto *, casenumber n_cases, const struct casereader_class *, void *); void *casereader_dynamic_cast (struct casereader *, const struct casereader_class *); @@ -150,17 +150,17 @@ struct casereader_random_class /* Mandatory. - A call to this function tells the callee that the CNT + A call to this function tells the callee that the N cases at the beginning of READER will never be read again. The casereader implementation should free any resources associated with those cases. After this function returns, the IDX argument in future calls to the "read" function will be relative to remaining cases. */ - void (*advance) (struct casereader *reader, void *aux, casenumber cnt); + void (*advance) (struct casereader *reader, void *aux, casenumber n); }; struct casereader * -casereader_create_random (size_t value_cnt, casenumber case_cnt, +casereader_create_random (const struct caseproto *, casenumber n_cases, const struct casereader_random_class *, void *aux); #endif /* data/casereader-provider.h */