Debian Codegraph @

libguile/r6rs-ports.h

raw symbols SCIP
1 #ifndef SCM_R6RS_PORTS_H
2 #define SCM_R6RS_PORTS_H
3
4 /* Copyright 2009-2011,2013,2018-2019,2023
5 Free Software Foundation, Inc.
6
7 This file is part of Guile.
8
9 Guile is free software: you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published
11 by the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 Guile is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with Guile. If not, see
21 <https://www.gnu.org/licenses/>. */
22
23
24
25 #include "libguile/scm.h"
26
27 /* R6RS I/O Ports. */
28
29 SCM_API SCM scm_eof_object (void);
30 SCM_API SCM scm_open_bytevector_input_port (SCM, SCM);
31 SCM_API SCM scm_get_u8 (SCM);
32 SCM_API SCM scm_lookahead_u8 (SCM);
33 SCM_API SCM scm_get_bytevector_n (SCM, SCM);
34 SCM_API SCM scm_get_bytevector_n_x (SCM, SCM, SCM, SCM);
35 SCM_API SCM scm_get_bytevector_some (SCM);
36 SCM_API SCM scm_get_bytevector_all (SCM);
37 SCM_API SCM scm_put_u8 (SCM, SCM);
38 SCM_API SCM scm_put_bytevector (SCM, SCM, SCM, SCM);
39 SCM_API SCM scm_open_bytevector_output_port (SCM);
40
41 SCM_API SCM scm_make_custom_binary_input_port (SCM, SCM, SCM, SCM, SCM);
42 SCM_API SCM scm_make_custom_binary_output_port (SCM, SCM, SCM, SCM, SCM);
43 SCM_API SCM scm_make_custom_binary_input_output_port (SCM, SCM, SCM,
44 SCM, SCM, SCM);
45
46 SCM_API SCM scm_get_string_n_x (SCM, SCM, SCM, SCM);
47
48 SCM_API void scm_init_r6rs_ports (void);
49 SCM_INTERNAL void scm_register_r6rs_ports (void);
50
51 /* Guile extensions, not in R6RS. */
52 SCM_API SCM scm_unget_bytevector (SCM, SCM, SCM, SCM);
53 SCM_API SCM scm_get_bytevector_some_x (SCM, SCM, SCM, SCM);
54
55 #endif /* SCM_R6RS_PORTS_H */