X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fdata%2Fcasereader-provider.h;h=37bde24310c76e1a1c5c6facd49c439968c9272c;hb=9cf53942f5772eb7b928955f6e7e0ba950381bfc;hp=f22cf4accff7b8063b9d812e39f077ea8e206533;hpb=81579d9e9f994fb2908f50af41c3eb033d216e58;p=pspp diff --git a/src/data/casereader-provider.h b/src/data/casereader-provider.h index f22cf4accf..37bde24310 100644 --- a/src/data/casereader-provider.h +++ b/src/data/casereader-provider.h @@ -112,7 +112,7 @@ struct casereader_class struct casereader * casereader_create_sequential (const struct taint *, - const struct caseproto *, casenumber case_cnt, + const struct caseproto *, casenumber n_cases, const struct casereader_class *, void *); void *casereader_dynamic_cast (struct casereader *, const struct casereader_class *); @@ -148,19 +148,19 @@ struct casereader_random_class function should call casereader_force_error on READER. */ void (*destroy) (struct casereader *reader, void *aux); - /* Mandatory. + /* Optional. - 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 (const struct caseproto *, casenumber case_cnt, +casereader_create_random (const struct caseproto *, casenumber n_cases, const struct casereader_random_class *, void *aux); #endif /* data/casereader-provider.h */