/[pspp]/pspp/src/command.c
ViewVC logotype

Diff of /pspp/src/command.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by blp, Sun Jul 31 21:42:46 2005 UTC revision 1.28 by blp, Sun Dec 11 02:48:45 2005 UTC
# Line 108  pspp_completion_function (const char *te Line 108  pspp_completion_function (const char *te
108    
109        cmd = &commands[state + skip];        cmd = &commands[state + skip];
110        
111        if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug  &&  ! test_mode ) )        if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug  &&  ! get_testing_mode () ) )
112          {          {
113            skip++;            skip++;
114            continue;            continue;
# Line 554  parse_command_name (void) Line 554  parse_command_name (void)
554              {              {
555                if (command->skip_entire_name)                if (command->skip_entire_name)
556                  lex_get ();                  lex_get ();
557                if ( command->debug & !test_mode )                if ( command->debug & !get_testing_mode () )
558                  goto error;                  goto error;
559                free_words (words, word_cnt);                free_words (words, word_cnt);
560                return command;                return command;
# Line 599  parse_command_name (void) Line 599  parse_command_name (void)
599            free (words[word_cnt]);            free (words[word_cnt]);
600          }          }
601    
602        if ( command->debug && !test_mode )        if ( command->debug && !get_testing_mode () )
603          goto error;          goto error;
604    
605        free_words (words, word_cnt);        free_words (words, word_cnt);
# Line 679  cmd_execute (void) Line 679  cmd_execute (void)
679  int  int
680  cmd_erase (void)  cmd_erase (void)
681  {  {
682    if ( safer_mode() )    if (get_safer_mode ())
683      {      {
684        msg (SE, _("This command not allowed when the SAFER option is set."));        msg (SE, _("This command not allowed when the SAFER option is set."));
685        return CMD_FAILURE;        return CMD_FAILURE;
# Line 810  cmd_host (void) Line 810  cmd_host (void)
810  {  {
811    int code;    int code;
812    
813    if ( safer_mode() )    if (get_safer_mode ())
814      {      {
815        msg (SE, _("This command not allowed when the SAFER option is set."));        msg (SE, _("This command not allowed when the SAFER option is set."));
816        return CMD_FAILURE;        return CMD_FAILURE;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26