X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftemporary.c;h=840e5d2b4e73941b95242b5b1b65c7087dea974a;hb=0ef6ac022673935ef842a1059aad45b89d59f025;hp=293ed30c174ff16b63d9adf3d19937871503e7ef;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/temporary.c b/src/temporary.c index 293ed30c17..840e5d2b4e 100644 --- a/src/temporary.c +++ b/src/temporary.c @@ -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;