object.h 1.8 KB

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