trans.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. #ifndef NORCSID
  6. #define RCS_TRANS "$Id$"
  7. #endif
  8. /* This structure is the center of all actions */
  9. /* It contains the description of all phases,
  10. the suffices they consume and produce and various properties */
  11. typedef struct transform trf;
  12. struct transform {
  13. char *t_in ; /* Suffices in '.o.k' */
  14. char *t_out ; /* Result '.suffix' */
  15. char *t_outfile ; /* Resulting output file */
  16. char *t_name ; /* The name of this transformation */
  17. list_head t_mapf ; /* Mapflags argument, uses varrep */
  18. char *t_argd ; /* Argument descriptor, uses varrep */
  19. char *t_needed ; /* Suffix indicating the libraries needed */
  20. char *t_rts ; /* Suffix indicating the major language used*/
  21. int t_stdin:1 ; /* The input is taken on stdin */
  22. int t_stdout:1 ; /* The output comes on stdout */
  23. int t_combine:1 ; /* Transform several files to one result */
  24. int t_visited:1 ; /* NO before setup, YES after */
  25. int t_prep:2 ; /* Needs preprocessor YES/NO/MAYBE */
  26. int t_isprep:1 ; /* Is preprocessor */
  27. int t_keep:1 ; /* Keep the output file */
  28. int t_scan:1 ; /* Used while finding path's */
  29. int t_bscan:1 ; /* Best scan so far, while finding path's */
  30. int t_linker:1 ; /* The linker usurps all unrecognized flags */
  31. int t_do:1 ; /* Is in a path to execute */
  32. int t_blocked:1 ; /* An input file could not be produced */
  33. short t_optim ; /* Is optimizer, + optimizer level */
  34. short t_priority ; /* Importance of including phase in scan */
  35. list_head t_inputs ; /* The input 'path's of a combiner */
  36. char *t_origname ; /* The basename of the output file */
  37. trf *t_next ; /* The transformation to be executed next */
  38. char *t_prog ; /* Pathname for load file */
  39. list_head t_flags ; /* List of flags */
  40. list_head t_args ; /* List of arguments */
  41. } ;
  42. #define t_cont(elem) ((trf *)l_content(elem))