X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftemporary.c;h=840e5d2b4e73941b95242b5b1b65c7087dea974a;hb=b9799cdd10b30ea96d9178b7a0d48504d052228c;hp=0edb37f5ff772a3a7f48ff8b5147755e6b1933f8;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp-builds.git diff --git a/src/temporary.c b/src/temporary.c index 0edb37f5..840e5d2b 100644 --- a/src/temporary.c +++ b/src/temporary.c @@ -14,8 +14,8 @@ 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., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "error.h" @@ -24,7 +24,7 @@ #include "alloc.h" #include "command.h" #include "dictionary.h" -#include "do-ifP.h" +#include "ctl-stack.h" #include "error.h" #include "hash.h" #include "lexer.h" @@ -32,16 +32,19 @@ #include "value-labels.h" #include "var.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + int temporary; struct dictionary *temp_dict; -int temp_trns; +size_t temp_trns; /* Parses the TEMPORARY command. */ int cmd_temporary (void) { /* TEMPORARY is not allowed inside DO IF or LOOP. */ - if (ctl_stack) + if (!ctl_stack_is_empty ()) { msg (SE, _("This command is not valid inside DO IF or LOOP.")); return CMD_FAILURE;