files.h 976 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* F I L E N A M E S */
  7. /* The names of the input files of every phase are passed as
  8. * arguments to the phase. First come the input file names,
  9. * then the output file names. We use a one-letter convention
  10. * to denote the type of file:
  11. * p: procedure table file
  12. * d: data table file
  13. * l: EM text file (lines of EM instructions)
  14. * b: basic block file (Control Flow Graph file)
  15. */
  16. /* The input file names */
  17. #define pname argv[1]
  18. #define dname argv[2]
  19. #define lname argv[3]
  20. #define bname argv[4]
  21. /* The output file names */
  22. #define pname2 argv[5]
  23. #define dname2 argv[6]
  24. #define lname2 argv[7]
  25. #define bname2 argv[8]
  26. #define ARGSTART 9
  27. FILE *openfile(char *name, char *mode);
  28. /* Open a file with the given name
  29. * and mode; aborts if the file
  30. * cannot be opened.
  31. */