home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / tex / tex31 / texsrc.lzh / COMMON.LZH / FILEIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-13  |  850 b   |  33 lines

  1. /* fileio.h: routines used by TeX, Metafont, and BibTeX.  */
  2.  
  3. #ifndef FILEIO_H
  4. #define FILEIO_H
  5.  
  6. #include "../common/extra.h"
  7.  
  8. #ifdef BibTeX
  9. /* I don't understand the hack in ../bibtex/convert that makes setjmp
  10.    necessary, but here's the include file, anyway.  */
  11. #include <setjmp.h>
  12. #endif
  13.  
  14. /* `aopenin' is used both for input files and pool files, so it
  15.    needs to know what path to use.  `aopenout' doesn't use any paths,
  16.    though.  */
  17. #define aopenin(f, p)    open_input (&(f), p)
  18. #define aopenout(f)    open_output (&(f))
  19.  
  20. /* Closing files is even easier; we don't bother to check the return
  21.    status from fclose(3).  */
  22. #define aclose(f)    if (f) (void) fclose (f)
  23.  
  24. typedef FILE *alphafile;
  25.  
  26. #ifdef BibTeX
  27. /* See bibtex.ch for why these are necessary.  */
  28. extern FILE *standardinput;
  29. extern FILE *standardoutput;
  30. #endif
  31.  
  32. #endif /* not FILEIO_H */
  33.