X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ftransformations.c;h=2a73cade41bbcf6e4c55622c5d00b9d8b18505b6;hb=77b683eb2664e502edaf075e3b858b773433da7c;hp=c810491490e67a52f8762a241157d5ab674f1243;hpb=76f3a20db3fd092560fac22c3e8c03958f7136b4;p=pspp-builds.git diff --git a/src/data/transformations.c b/src/data/transformations.c index c8104914..2a73cade 100644 --- a/src/data/transformations.c +++ b/src/data/transformations.c @@ -1,20 +1,18 @@ -/* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. +/* PSPP - a program for statistical analysis. + Copyright (C) 1997-9, 2000, 2006, 2009 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 the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #include @@ -180,14 +178,15 @@ trns_chain_next (struct trns_chain *chain) return chain->trns_cnt; } -/* Executes the given CHAIN of transformations on C, +/* Executes the given CHAIN of transformations on *C, passing CASE_NR as the case number. + *C may be replaced by a new case. Returns the result code that caused the transformations to terminate, or TRNS_CONTINUE if the transformations finished due to "falling off the end" of the set of transformations. */ enum trns_result trns_chain_execute (const struct trns_chain *chain, enum trns_result start, - struct ccase *c, casenumber case_nr) + struct ccase **c, casenumber case_nr) { size_t i;