X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseinit.h;h=ff79a947fed8e6dac0200400047b60820af17d97;hb=54b3aa8432383287c75b9baf954b7bf887126a0c;hp=dbff8567e7bb2aa5cebb4d9fcc399d7f5feab488;hpb=b401615e6db40bf74394839b96600afe3a868a95;p=pspp diff --git a/src/data/caseinit.h b/src/data/caseinit.h index dbff8567e7..ff79a947fe 100644 --- a/src/data/caseinit.h +++ b/src/data/caseinit.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2010 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 @@ -31,11 +31,13 @@ #ifndef DATA_CASEINIT_H #define DATA_CASEINIT_H 1 +struct caseproto; struct dictionary; struct ccase; /* Creation and destruction. */ struct caseinit *caseinit_create (void); +struct caseinit *caseinit_clone (struct caseinit *); void caseinit_clear (struct caseinit *); void caseinit_destroy (struct caseinit *); @@ -45,6 +47,12 @@ void caseinit_mark_for_init (struct caseinit *, const struct dictionary *); /* 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 *); +void caseinit_save_left_vars (struct caseinit *, const struct ccase *); +void caseinit_restore_left_vars (struct caseinit *, struct ccase *); + +/* Translate. */ +struct casereader *caseinit_translate_casereader_to_init_vars ( + struct caseinit *, const struct caseproto *output_proto, + struct casereader *); #endif /* data/caseinit.h */