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; |
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; |
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); |
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; |
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; |