/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2009, 2010, 2011, 2012, 2013, 2015 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
#include "data/case.h"
#include "data/caseinit.h"
#include "data/casereader-provider.h"
+#include "data/control-stack.h"
#include "data/dataset.h"
#include "data/dictionary.h"
#include "data/session.h"
&& lex_get_error_mode (lexer) != LEX_ERROR_TERMINAL)
{
if (result == CMD_EOF)
- msg (SE, _("Unexpected end-of-file within INPUT PROGRAM."));
+ msg (SE, _("Unexpected end-of-file within %s."), "INPUT PROGRAM");
inside_input_program = false;
destroy_input_program (inp);
return result;
if (!saw_DATA_LIST && !saw_END_FILE)
{
- msg (SE, _("Input program must contain DATA LIST or END FILE."));
+ msg (SE, _("Input program must contain %s or %s."), "DATA LIST", "END FILE");
destroy_input_program (inp);
return CMD_FAILURE;
}
return CMD_FAILURE;
}
- inp->trns_chain = proc_capture_transformations (inp->ds);
- trns_chain_finalize (inp->trns_chain);
+ ctl_stack_clear ();
+ inp->trns_chain = proc_capture_transformations (ds);
inp->restart = TRNS_CONTINUE;
if (pgm != NULL)
{
session_destroy (pgm->session);
+ ctl_stack_clear ();
trns_chain_destroy (pgm->trns_chain);
caseinit_destroy (pgm->init);
caseproto_unref (pgm->proto);