Commit | Line | Data |
---|---|---|
0f2d19dd JB |
1 | /* classes: h_files */ |
2 | ||
0527e687 DH |
3 | #ifndef SCM_READ_H |
4 | #define SCM_READ_H | |
5 | ||
f8a1c9a8 | 6 | /* Copyright (C) 1995,1996,2000, 2006, 2008, 2009 Free Software Foundation, Inc. |
0527e687 | 7 | * |
73be1d9e | 8 | * This library is free software; you can redistribute it and/or |
53befeb7 NJ |
9 | * modify it under the terms of the GNU Lesser General Public License |
10 | * as published by the Free Software Foundation; either version 3 of | |
11 | * the License, or (at your option) any later version. | |
0527e687 | 12 | * |
53befeb7 NJ |
13 | * This library is distributed in the hope that it will be useful, but |
14 | * 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 | |
53befeb7 NJ |
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
21 | * 02110-1301 USA | |
73be1d9e | 22 | */ |
0527e687 | 23 | |
0f2d19dd JB |
24 | \f |
25 | ||
b4309c3c | 26 | #include "libguile/__scm.h" |
0f2d19dd | 27 | |
e56ea0ba | 28 | #include "libguile/options.h" |
0f2d19dd JB |
29 | \f |
30 | ||
31 | /* SCM_LINE_INCREMENTORS are the characters which cause the line count to | |
32 | * be incremented for the purposes of error reporting. This feature | |
33 | * is only used for scheme code loaded from files. | |
34 | * | |
35 | * SCM_WHITE_SPACES are other characters which should be treated like spaces | |
36 | * in programs. | |
37 | */ | |
38 | ||
39 | #define SCM_LINE_INCREMENTORS '\n' | |
40 | ||
41 | #ifdef MSDOS | |
42 | # define SCM_SINGLE_SPACES ' ':case '\r':case '\f': case 26 | |
43 | #else | |
44 | # define SCM_SINGLE_SPACES ' ':case '\r':case '\f' | |
45 | #endif | |
46 | ||
47 | #define SCM_WHITE_SPACES SCM_SINGLE_SPACES: case '\t' | |
48 | ||
22fc179a | 49 | |
ba99801a | 50 | |
0f2d19dd JB |
51 | \f |
52 | ||
5bf6a6f0 DH |
53 | SCM_API SCM scm_sym_dot; |
54 | ||
33b001fd MV |
55 | SCM_API SCM scm_read_options (SCM setting); |
56 | SCM_API SCM scm_read (SCM port); | |
33b001fd | 57 | SCM_API size_t scm_read_token (int ic, SCM * tok_buf, SCM port, int weird); |
33b001fd | 58 | SCM_API SCM scm_read_hash_extend (SCM chr, SCM proc); |
f8a1c9a8 | 59 | SCM_INTERNAL char *scm_i_scan_for_encoding (SCM port); |
889975e5 | 60 | SCM_API SCM scm_file_encoding (SCM port); |
a4022e69 | 61 | |
102dbb6f LC |
62 | SCM_INTERNAL void scm_i_input_error (const char *func, SCM port, |
63 | const char *message, SCM arg) | |
7337d56d | 64 | SCM_NORETURN; |
a4022e69 | 65 | |
102dbb6f | 66 | SCM_INTERNAL void scm_init_read (void); |
0f2d19dd | 67 | |
0527e687 | 68 | #endif /* SCM_READ_H */ |
89e00824 ML |
69 | |
70 | /* | |
71 | Local Variables: | |
72 | c-file-style: "gnu" | |
73 | End: | |
74 | */ |