r6rs-ports.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef SCM_R6RS_PORTS_H
  2. #define SCM_R6RS_PORTS_H
  3. /* Copyright (C) 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public License
  7. * as published by the Free Software Foundation; either version 3 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  18. * 02110-1301 USA
  19. */
  20. #include "libguile/__scm.h"
  21. /* R6RS I/O Ports. */
  22. SCM_API SCM scm_eof_object (void);
  23. SCM_API SCM scm_open_bytevector_input_port (SCM, SCM);
  24. SCM_API SCM scm_make_custom_binary_input_port (SCM, SCM, SCM, SCM, SCM);
  25. SCM_API SCM scm_get_u8 (SCM);
  26. SCM_API SCM scm_lookahead_u8 (SCM);
  27. SCM_API SCM scm_get_bytevector_n (SCM, SCM);
  28. SCM_API SCM scm_get_bytevector_n_x (SCM, SCM, SCM, SCM);
  29. SCM_API SCM scm_get_bytevector_some (SCM);
  30. SCM_API SCM scm_get_bytevector_all (SCM);
  31. SCM_API SCM scm_unget_bytevector (SCM, SCM, SCM, SCM);
  32. SCM_API SCM scm_put_u8 (SCM, SCM);
  33. SCM_API SCM scm_put_bytevector (SCM, SCM, SCM, SCM);
  34. SCM_API SCM scm_open_bytevector_output_port (SCM);
  35. SCM_API SCM scm_make_custom_binary_output_port (SCM, SCM, SCM, SCM, SCM);
  36. SCM_API SCM scm_get_string_n_x (SCM, SCM, SCM, SCM);
  37. SCM_API void scm_init_r6rs_ports (void);
  38. SCM_INTERNAL void scm_register_r6rs_ports (void);
  39. #endif /* SCM_R6RS_PORTS_H */