version 1.4, 2003/04/13 18:26:25 |
version 1.5, 2003/04/14 14:33:57 |
|
|
{ |
{ |
chflags = ch_getflags(); |
chflags = ch_getflags(); |
close_file(); |
close_file(); |
if ((chflags & CH_HELPFILE) && held_ifile(was_curr_ifile) <= 1) |
|
{ |
|
/* |
|
* Don't keep the help file in the ifile list. |
|
*/ |
|
del_ifile(was_curr_ifile); |
|
was_curr_ifile = old_ifile; |
|
} |
|
} |
} |
|
|
if (ifile == NULL_IFILE) |
if (ifile == NULL_IFILE) |
|
|
*/ |
*/ |
__djgpp_set_ctrl_c(1); |
__djgpp_set_ctrl_c(1); |
#endif |
#endif |
} else if (strcmp(open_filename, FAKE_HELPFILE) == 0) |
|
{ |
|
f = -1; |
|
chflags |= CH_HELPFILE; |
|
} else if ((parg.p_string = bad_file(open_filename)) != NULL) |
} else if ((parg.p_string = bad_file(open_filename)) != NULL) |
{ |
{ |
/* |
/* |
|
|
new_file = TRUE; |
new_file = TRUE; |
ch_init(f, chflags); |
ch_init(f, chflags); |
|
|
if (!(chflags & CH_HELPFILE)) |
|
{ |
|
#if LOGFILE |
#if LOGFILE |
if (namelogfile != NULL && is_tty) |
if (namelogfile != NULL && is_tty) |
use_logfile(namelogfile); |
use_logfile(namelogfile); |
#endif |
#endif |
if (every_first_cmd != NULL) |
if (every_first_cmd != NULL) |
ungetsc(every_first_cmd); |
ungetsc(every_first_cmd); |
} |
|
|
|
no_display = !any_display; |
no_display = !any_display; |
flush(); |
flush(); |