X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseinit.h;h=66226f5683c806728ca36fccc8dcc96d5a18dfa7;hb=2cf38ce51a9f34961d68a75e0b312a591b5c9abf;hp=7c7f1c69e7d7288a98d7c6da07b03e1cf1eba350;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp-builds.git diff --git a/src/data/caseinit.h b/src/data/caseinit.h index 7c7f1c69..66226f56 100644 --- a/src/data/caseinit.h +++ b/src/data/caseinit.h @@ -1,20 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 2007 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 . */ /* Case initializer. @@ -26,7 +24,9 @@ save the values of "left" variables to copy into the next case read from the active file. - The caseinit code helps with this. */ + The caseinit data structure provides a little help for + tracking what data to initialize or to copy from case to + case. */ #ifndef DATA_CASEINIT_H #define DATA_CASEINIT_H 1 @@ -34,15 +34,17 @@ struct dictionary; struct ccase; +/* Creation and destruction. */ struct caseinit *caseinit_create (void); void caseinit_clear (struct caseinit *); void caseinit_destroy (struct caseinit *); +/* Track data to be initialized. */ void caseinit_mark_as_preinited (struct caseinit *, const struct dictionary *); void caseinit_mark_for_init (struct caseinit *, const struct dictionary *); -void caseinit_init_reinit_vars (const struct caseinit *, struct ccase *); -void caseinit_init_left_vars (const struct caseinit *, struct ccase *); +/* Initialize data and copy data from case to case. */ +void caseinit_init_vars (const struct caseinit *, struct ccase *); void caseinit_update_left_vars (struct caseinit *, const struct ccase *); #endif /* data/caseinit.h */