X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewindow.c;h=6277c4402da218d6fac2c6488ff98f890ef63dbe;hb=b525a9596e60d5ae4c6c464b4a426b77ade3dd72;hp=ccd2853da36e492c192591f07c5251d74e3910e5;hpb=89c05dfe33f9542e60e66dd383f7a514849b5947;p=pspp diff --git a/src/data/casewindow.c b/src/data/casewindow.c index ccd2853da3..6277c4402d 100644 --- a/src/data/casewindow.c +++ b/src/data/casewindow.c @@ -51,7 +51,7 @@ struct casewindow_class void *(*create) (struct taint *, const struct caseproto *); void (*destroy) (void *aux); void (*push_head) (void *aux, struct ccase *); - void (*pop_tail) (void *aux, casenumber cnt); + void (*pop_tail) (void *aux, casenumber n); struct ccase *(*get_case) (void *aux, casenumber ofs); casenumber (*get_n_cases) (const void *aux); }; @@ -153,7 +153,7 @@ casewindow_push_head (struct casewindow *cw, struct ccase *c) case_unref (c); } -/* Deletes CASE_CNT cases at the tail of casewindow CW. */ +/* Deletes N_CASES cases at the tail of casewindow CW. */ void casewindow_pop_tail (struct casewindow *cw, casenumber n_cases) { @@ -316,11 +316,11 @@ casewindow_file_push_head (void *cwf_, struct ccase *c) } static void -casewindow_file_pop_tail (void *cwf_, casenumber cnt) +casewindow_file_pop_tail (void *cwf_, casenumber n) { struct casewindow_file *cwf = cwf_; - assert (cnt <= cwf->head - cwf->tail); - cwf->tail += cnt; + assert (n <= cwf->head - cwf->tail); + cwf->tail += n; if (cwf->head == cwf->tail) cwf->head = cwf->tail = 0; }