X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewindow.h;h=c7a863eaa89544f5ebf89f3e1b333530b8c75574;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=c3971231afe2d1ed5ac5f89e9b5b61e719505212;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/data/casewindow.h b/src/data/casewindow.h index c3971231..c7a863ea 100644 --- a/src/data/casewindow.h +++ b/src/data/casewindow.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 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,18 +28,19 @@ #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 *); void casewindow_push_head (struct casewindow *, struct ccase *); void casewindow_pop_tail (struct casewindow *, casenumber cnt); -bool casewindow_get_case (const struct casewindow *, casenumber case_idx, - struct ccase *); -size_t casewindow_get_value_cnt (const struct casewindow *); +struct ccase *casewindow_get_case (const struct casewindow *, + casenumber case_idx); +const struct caseproto *casewindow_get_proto (const struct casewindow *); casenumber casewindow_get_case_cnt (const struct casewindow *); bool casewindow_error (const struct casewindow *);