Scheme SRFI-18 implementation and tests file
[bpt/guile.git] / libguile / read.h
CommitLineData
0f2d19dd
JB
1/* classes: h_files */
2
0527e687
DH
3#ifndef SCM_READ_H
4#define SCM_READ_H
5
2b829bbb 6/* Copyright (C) 1995,1996,2000, 2006 Free Software Foundation, Inc.
0527e687 7 *
73be1d9e
MV
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
0527e687 12 *
73be1d9e 13 * This library is distributed in the hope that it will be useful,
0f2d19dd 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
73be1d9e
MV
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
0527e687 17 *
73be1d9e
MV
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
92205699 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
73be1d9e 21 */
0527e687 22
0f2d19dd
JB
23\f
24
b4309c3c 25#include "libguile/__scm.h"
0f2d19dd 26
e56ea0ba 27#include "libguile/options.h"
0f2d19dd
JB
28\f
29
30/* SCM_LINE_INCREMENTORS are the characters which cause the line count to
31 * be incremented for the purposes of error reporting. This feature
32 * is only used for scheme code loaded from files.
33 *
34 * SCM_WHITE_SPACES are other characters which should be treated like spaces
35 * in programs.
36 */
37
38#define SCM_LINE_INCREMENTORS '\n'
39
40#ifdef MSDOS
41# define SCM_SINGLE_SPACES ' ':case '\r':case '\f': case 26
42#else
43# define SCM_SINGLE_SPACES ' ':case '\r':case '\f'
44#endif
45
46#define SCM_WHITE_SPACES SCM_SINGLE_SPACES: case '\t'
47
22fc179a 48
ba99801a 49
0f2d19dd
JB
50\f
51
5bf6a6f0
DH
52SCM_API SCM scm_sym_dot;
53
33b001fd
MV
54SCM_API SCM scm_read_options (SCM setting);
55SCM_API SCM scm_read (SCM port);
33b001fd 56SCM_API size_t scm_read_token (int ic, SCM * tok_buf, SCM port, int weird);
33b001fd 57SCM_API SCM scm_read_hash_extend (SCM chr, SCM proc);
a4022e69
MV
58
59SCM_API void scm_i_input_error (const char *func, SCM port,
7337d56d
LC
60 const char *message, SCM arg)
61 SCM_NORETURN;
a4022e69 62
33b001fd 63SCM_API void scm_init_read (void);
0f2d19dd 64
0527e687 65#endif /* SCM_READ_H */
89e00824
ML
66
67/*
68 Local Variables:
69 c-file-style: "gnu"
70 End:
71*/