X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftemporary.c;h=293ed30c174ff16b63d9adf3d19937871503e7ef;hb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;hp=f569028a081b389b632f42babebbcf0c9596d3aa;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp diff --git a/src/temporary.c b/src/temporary.c index f569028a08..293ed30c17 100644 --- a/src/temporary.c +++ b/src/temporary.c @@ -14,15 +14,16 @@ 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 +#include "error.h" #include #include #include "alloc.h" #include "command.h" +#include "dictionary.h" #include "do-ifP.h" #include "error.h" #include "hash.h" @@ -31,8 +32,6 @@ #include "value-labels.h" #include "var.h" -#include "debug-print.h" - int temporary; struct dictionary *temp_dict; int temp_trns; @@ -41,8 +40,6 @@ int temp_trns; int cmd_temporary (void) { - lex_match_id ("TEMPORARY"); - /* TEMPORARY is not allowed inside DO IF or LOOP. */ if (ctl_stack) { @@ -61,11 +58,7 @@ cmd_temporary (void) /* Make a copy of the current dictionary. */ temporary = 1; temp_dict = dict_clone (default_dict); - if (f_trns == n_trns) - temp_trns = -1; - else - temp_trns = n_trns; - debug_printf (("TEMPORARY: temp_trns=%d\n", temp_trns)); + temp_trns = n_trns; return lex_end_of_command (); }