cmd = &commands[state + skip];
- if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug && ! test_mode ) )
+ if ( cmd->transition[pgm_state] == STATE_ERROR || ( cmd->debug && ! get_testing_mode () ) )
{
skip++;
continue;
{
if (command->skip_entire_name)
lex_get ();
- if ( command->debug & !test_mode )
+ if ( command->debug & !get_testing_mode () )
goto error;
free_words (words, word_cnt);
return command;
free (words[word_cnt]);
}
- if ( command->debug && !test_mode )
+ if ( command->debug && !get_testing_mode () )
goto error;
free_words (words, word_cnt);
int
cmd_exit (void)
{
- if (getl_reading_script)
+ if (getl_reading_script())
{
msg (SE, _("This command is not accepted in a syntax file. "
"Instead, use FINISH to terminate a syntax file."));
int
cmd_erase (void)
{
- if ( safer_mode() )
+ if (get_safer_mode ())
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;
execl (shell_fn, shell_process, NULL);
- err_hcf (1);
+ _exit (1);
}
case -1:
{
int code;
- if ( safer_mode() )
+ if (get_safer_mode ())
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;