object.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include <ansi.h>
  7. #ifndef __OBJECT_INCLUDED__
  8. #define __OBJECT_INCLUDED__
  9. struct fil;
  10. struct outhead;
  11. struct outsect;
  12. struct outname;
  13. struct ar_hdr;
  14. struct ranlib;
  15. struct outrelo;
  16. _PROTOTYPE(int wr_open, (char *f));
  17. _PROTOTYPE(void wr_close, (void));
  18. _PROTOTYPE(void wr_ohead, (struct outhead *h));
  19. _PROTOTYPE(void wr_sect, (struct outsect *s, unsigned int c));
  20. _PROTOTYPE(void wr_outsect, (int sectno));
  21. _PROTOTYPE(void wr_emit, (char *b, long c));
  22. _PROTOTYPE(void wr_putc, (int c));
  23. _PROTOTYPE(void wr_relo, (struct outrelo *r, unsigned int c));
  24. _PROTOTYPE(void wr_name, (struct outname *n, unsigned int c));
  25. _PROTOTYPE(void wr_string, (char *s, long c));
  26. _PROTOTYPE(void wr_arhdr, (int fd, struct ar_hdr *a));
  27. _PROTOTYPE(void wr_ranlib, (int fd, struct ranlib *r, long cnt));
  28. _PROTOTYPE(void wr_int2, (int fd, int i));
  29. _PROTOTYPE(void wr_long, (int fd, long l));
  30. _PROTOTYPE(void wr_bytes, (int fd, char *buf, long l));
  31. _PROTOTYPE(void __wr_flush, (struct fil *ptr));
  32. _PROTOTYPE(int rd_open, (char *f));
  33. _PROTOTYPE(int rd_fdopen, (int f));
  34. _PROTOTYPE(void rd_close, (void));
  35. _PROTOTYPE(void rd_ohead, (struct outhead *h));
  36. _PROTOTYPE(void rd_sect, (struct outsect *s, unsigned int c));
  37. _PROTOTYPE(void rd_outsect, (int sectno));
  38. _PROTOTYPE(void rd_emit, (char *b, long c));
  39. _PROTOTYPE(void rd_relo, (struct outrelo *r, unsigned int c));
  40. _PROTOTYPE(void rd_rew_relo, (struct outhead *head));
  41. _PROTOTYPE(void rd_name, (struct outname *n, unsigned int c));
  42. _PROTOTYPE(void rd_string, (char *s, long c));
  43. _PROTOTYPE(int rd_arhdr, (int fd, struct ar_hdr *a));
  44. _PROTOTYPE(void rd_ranlib, (int fd, struct ranlib *r, long cnt));
  45. _PROTOTYPE(int rd_int2, (int fd));
  46. _PROTOTYPE(unsigned int rd_unsigned2, (int fd));
  47. _PROTOTYPE(long rd_long, (int fd));
  48. _PROTOTYPE(void rd_bytes, (int fd, char *buf, long l));
  49. _PROTOTYPE(int rd_fd, (void));
  50. #endif /* __OBJECT_INCLUDED__ */