X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasewindow.c;h=804a58aa517cbb344fb5a8f56b9616da5e5168b4;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=9b04b9413c61bbace1e5b189d68e65eebe152482;hpb=b5c82cc9aabe7e641011130240ae1b2e84348e23;p=pspp-builds.git diff --git a/src/data/casewindow.c b/src/data/casewindow.c index 9b04b941..804a58aa 100644 --- a/src/data/casewindow.c +++ b/src/data/casewindow.c @@ -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 @@ -20,17 +20,17 @@ #include -#include +#include "data/casewindow.h" #include -#include -#include -#include -#include -#include +#include "data/case-tmpfile.h" +#include "libpspp/assertion.h" +#include "libpspp/compiler.h" +#include "libpspp/deque.h" +#include "libpspp/taint.h" -#include "xalloc.h" +#include "gl/xalloc.h" /* A queue of cases. */ struct casewindow @@ -168,7 +168,7 @@ casewindow_pop_tail (struct casewindow *cw, casenumber case_cnt) struct ccase * casewindow_get_case (const struct casewindow *cw_, casenumber case_idx) { - struct casewindow *cw = (struct casewindow *) cw_; + struct casewindow *cw = CONST_CAST (struct casewindow *, cw_); assert (case_idx >= 0 && case_idx < casewindow_get_case_cnt (cw)); if (casewindow_error (cw))