From: Ben Pfaff Date: Tue, 7 Dec 2010 04:46:35 +0000 (-0800) Subject: DO REPEAT: Make this command usable anywhere. X-Git-Tag: v0.7.7~106 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86024ba02971a81ba8d645d859b58f94a17a0deb;p=pspp-builds.git DO REPEAT: Make this command usable anywhere. DO REPEAT just does macro expansion so there's no reason to limit it to just after an active dataset has been defined. --- diff --git a/src/language/command.def b/src/language/command.def index 59d26f6f..ece18a8c 100644 --- a/src/language/command.def +++ b/src/language/command.def @@ -19,6 +19,8 @@ DEF_CMD (S_ANY, F_ENHANCED, "CLOSE FILE HANDLE", cmd_close_file_handle) DEF_CMD (S_ANY, F_KEEP_FINAL_TOKEN, "COMMENT", cmd_comment) DEF_CMD (S_ANY, 0, "CACHE", cmd_cache) DEF_CMD (S_ANY, 0, "CD", cmd_cd) +DEF_CMD (S_ANY, 0, "DO REPEAT", cmd_do_repeat) +DEF_CMD (S_ANY, 0, "END REPEAT", cmd_end_repeat) DEF_CMD (S_ANY, 0, "ECHO", cmd_echo) DEF_CMD (S_ANY, 0, "ERASE", cmd_erase) DEF_CMD (S_ANY, 0, "EXIT", cmd_finish) @@ -63,8 +65,6 @@ DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DATAFILE ATTRIBUTE", cmd_datafile_attribu DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DISPLAY", cmd_display) DEF_CMD (S_DATA | S_INPUT_PROGRAM, F_KEEP_FINAL_TOKEN, "DOCUMENT", cmd_document) DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DO IF", cmd_do_if) -DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DO REPEAT", cmd_do_repeat) -DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END REPEAT", cmd_end_repeat) DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DROP DOCUMENTS", cmd_drop_documents) DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE IF", cmd_else_if) DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE", cmd_else)