X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fstats%2Fflip.c;h=283a2266a4568a5c57a8fe2354620cf51d51bf31;hb=3ec4ce83403f756f2c983ca2b5544cb1dcf9dfe0;hp=e7896452ba2950dda5c661ad669fac3a23293f05;hpb=2be9bee9da6a2ce27715e58128569594319abfa2;p=pspp diff --git a/src/language/stats/flip.c b/src/language/stats/flip.c index e7896452ba..283a2266a4 100644 --- a/src/language/stats/flip.c +++ b/src/language/stats/flip.c @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "config.h" +#include #include #include @@ -158,7 +158,7 @@ cmd_flip (struct lexer *lexer, struct dataset *ds) var_names_add (flip->pool, &flip->old_names, pool_strdup (flip->pool, var_get_name (vars[i]))); - /* Read the active file into a flip_sink. */ + /* Read the active dataset into a flip_sink. */ proc_discard_output (ds); input = proc_open (ds); @@ -198,7 +198,7 @@ cmd_flip (struct lexer *lexer, struct dataset *ds) /* Flip the data we read. */ if (!ok || !flip_file (flip)) { - proc_discard_active_file (ds); + dataset_clear (ds); goto error; } @@ -219,7 +219,7 @@ cmd_flip (struct lexer *lexer, struct dataset *ds) reader = casereader_create_sequential (NULL, dict_get_proto (dict), flip->n_vars, &flip_casereader_class, flip); - proc_set_active_file_data (ds, reader); + dataset_set_source (ds, reader); return CMD_SUCCESS; error: