home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
texmf
/
source
/
TeX
/
common
/
fileio.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-01
|
1KB
|
49 lines
/* fileio.h: routines used by TeX, Metafont, and BibTeX. */
#ifndef FILEIO_H
#define FILEIO_H
#include "extra.h" /* "../common/extra.h" */
#ifdef BibTeX
/* I don't understand the hack in ../bibtex/convert that makes setjmp
necessary, but here's the include file, anyway. */
#include <setjmp.h>
#endif
/* `aopenin' is used both for input files and pool files, so it
needs to know what path to use. `aopenout' doesn't use any paths,
though. */
#define aopenin(f, p) open_input (&(f), p)
#ifdef atarist
#define aopenout(f) open_output (&(f), 1)
#else
#define aopenout(f) open_output (&(f))
#endif
/* Closing files is even easier; we don't bother to check the return
status from fclose(3). */
#define aclose(f) if (f) (void) fclose (f)
typedef FILE *alphafile;
#ifdef BibTeX
/* See bibtex.ch for why these are necessary. */
extern FILE *standardinput;
extern FILE *standardoutput;
#endif
#ifdef ANSI
boolean open_input (FILE **f, int path_index);
#ifdef atarist
boolean open_output (FILE **f, int txtflag);
#else
boolean open_output (FILE **f);
#endif
#else
boolean open_input ();
boolean open_output ();
#endif
#endif /* not FILEIO_H */