Lines Matching defs:ifile
326 public void close_altpipe(IFILE ifile)
328 FILE *altpipe = get_altpipe(ifile);
332 set_altpipe(ifile, NULL);
405 static int edit_error(constant char *filename, constant char *alt_filename, void *altpipe, IFILE ifile)
413 del_ifile(ifile);
417 if (curr_ifile == ifile)
420 * Whoops. The "current" ifile is the one we just deleted.
430 * ifile == NULL means just close the current file.
432 public int edit_ifile(IFILE ifile)
446 if (ifile == curr_ifile)
455 if (ifile != NULL_IFILE)
460 filename = get_filename(ifile);
461 altpipe = get_altpipe(ifile);
466 * chflags and f are not used by ch_init if ifile has
472 alt_filename = get_altfilename(ifile);
533 return edit_error(filename, alt_filename, altpipe, ifile);
543 return edit_error(filename, alt_filename, altpipe, ifile);
547 if (bin_file(f, &nread) && !force_open && !opened(ifile))
558 return edit_error(filename, alt_filename, altpipe, ifile);
568 return edit_error(filename, alt_filename, altpipe, ifile);
583 * Don't keep the help file in the ifile list.
591 if (ifile == NULL_IFILE)
603 * Set up the new ifile.
606 curr_ifile = ifile;
675 * For each filename in the list, enter it into the ifile list.
735 * Edit the first file in the command line (ifile) list.
746 * Edit the last file in the command line (ifile) list.
756 * Edit the n-th next or previous file in the command line (ifile) list.
776 * Reached end of the ifile list.
817 * Edit a specific file in the command line (ifile) list.
852 * Reedit the ifile which was previously open.
860 * Try to reopen the ifile.
862 * in which case the ifile will be deleted from the list.