X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewindow.h;h=5ac205480bad5aeab8684b2b3b0e876d389451f0;hb=339f1956cc727eda788638644ef93ab7852b31cd;hp=f0a200f449de014638d8114ce9b50cb13a4fccb8;hpb=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp diff --git a/src/data/casewindow.h b/src/data/casewindow.h index f0a200f449..5ac205480b 100644 --- a/src/data/casewindow.h +++ b/src/data/casewindow.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 @@ -28,10 +28,11 @@ #ifndef DATA_CASEWINDOW_H #define DATA_CASEWINDOW_H 1 -#include -#include +#include "data/case.h" -struct casewindow *casewindow_create (size_t value_cnt, +struct caseproto; + +struct casewindow *casewindow_create (const struct caseproto *, casenumber max_in_core_cases); bool casewindow_destroy (struct casewindow *); @@ -39,8 +40,8 @@ void casewindow_push_head (struct casewindow *, struct ccase *); void casewindow_pop_tail (struct casewindow *, casenumber cnt); struct ccase *casewindow_get_case (const struct casewindow *, casenumber case_idx); -size_t casewindow_get_value_cnt (const struct casewindow *); -casenumber casewindow_get_case_cnt (const struct casewindow *); +const struct caseproto *casewindow_get_proto (const struct casewindow *); +casenumber casewindow_get_n_cases (const struct casewindow *); bool casewindow_error (const struct casewindow *); void casewindow_force_error (struct casewindow *);