ic_io.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. /* I N T E R M E D I A T E C O D E
  7. *
  8. * L O W L E V E L I / O R O U T I N E S
  9. */
  10. int table1();
  11. /* Read an instruction from the
  12. * Compact Assembly Language input
  13. * file (in 'neutral state').
  14. */
  15. int table2();
  16. /* Read an instruction argument.
  17. */
  18. int table3(int n);
  19. /* Read 'Common Table' item.
  20. */
  21. short get_int();
  22. offset get_off();
  23. char readchar();
  24. void file_init(FILE *f, short state, long length);
  25. /* Input file initialization. All
  26. * following read operations will read
  27. * from the given file f. Also checks
  28. * the magic number and sets global
  29. * variable 'linecount' to 0.
  30. * If the state is ARCHIVE, length
  31. * specifies the length of the module.
  32. */
  33. void arch_init(FILE *arch);
  34. /* Same as file_init,but opens an
  35. * archive file. So it checks the
  36. * magic number for archives.
  37. */