X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fcommand.h;h=ecd2a752659d663366c3788fe7c9f5d105a36dfe;hb=60c545e6e958d868db3399a8989d37d8f9e0c131;hp=ab133c25e7932cf60f5e4fd835353659231c21d6;hpb=339f1956cc727eda788638644ef93ab7852b31cd;p=pspp diff --git a/src/language/command.h b/src/language/command.h index ab133c25e7..ecd2a75265 100644 --- a/src/language/command.h +++ b/src/language/command.h @@ -27,12 +27,6 @@ enum cmd_result CMD_EOF = 2, /* End of input. */ CMD_FINISH = 3, /* FINISH was executed. */ - /* Successful return values returned by specific commands to let INPUT - PROGRAM function properly. */ - CMD_DATA_LIST, - CMD_END_CASE, - CMD_END_FILE, - /* Various kinds of failures. */ CMD_FAILURE = -1, /* Not executed at all. */ CMD_NOT_IMPLEMENTED = -2, /* Command not implemented. */ @@ -48,7 +42,11 @@ enum cmd_state CMD_STATE_INITIAL, /* No active dataset yet defined. */ CMD_STATE_DATA, /* Active dataset has been defined. */ CMD_STATE_INPUT_PROGRAM, /* Inside INPUT PROGRAM. */ - CMD_STATE_FILE_TYPE /* Inside FILE TYPE. */ + CMD_STATE_FILE_TYPE, /* Inside FILE TYPE. */ + + /* Inside LOOP or DO IF... */ + CMD_STATE_NESTED_DATA, /* ...in CMD_STATE_DATA. */ + CMD_STATE_NESTED_INPUT_PROGRAM, /* ...in CMD_STATE_INPUT_PROGRAM. */ }; struct dataset;