X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommand.c;h=f4c76c33b32bde5d8cb9ed67f1cafad17c8ed5a3;hb=7b98b3a4f58f6dc5a8e9cbc188b627966d5e652d;hp=2c62d2f26d79200b8dce23cc80b79dea24820cb1;hpb=1dc8717737084b93af2cd212e84edbd2cce1046c;p=pspp diff --git a/src/command.c b/src/command.c index 2c62d2f26d..f4c76c33b3 100644 --- a/src/command.c +++ b/src/command.c @@ -249,7 +249,7 @@ cmd_parse (void) /* Perform the state transition if the command completed successfully (at least in part). */ - if (result != 0) + if (result != CMD_FAILURE) { pgm_state = cp->transition[pgm_state]; @@ -601,7 +601,7 @@ cmd_erase (void) return CMD_SUCCESS; } -#if unix +#ifdef unix /* Spawn a shell process. */ static int shell (void) @@ -713,7 +713,7 @@ cmd_host (void) lex_match_id ("HOST"); -#if unix +#ifdef unix /* Figure out whether to invoke an interactive shell or to execute a single shell command. */ if (lex_look_ahead () == '.')