6 /* Copyright (C) 1995,1996,2000, 2006, 2008, 2009 Free Software Foundation, Inc.
8 * This library is free software; you can redistribute it and/or
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.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
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
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 #include "libguile/__scm.h"
28 #include "libguile/options.h"
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.
35 * SCM_WHITE_SPACES are other characters which should be treated like spaces
39 #define SCM_LINE_INCREMENTORS '\n'
42 # define SCM_SINGLE_SPACES ' ':case '\r':case '\f': case 26
44 # define SCM_SINGLE_SPACES ' ':case '\r':case '\f'
47 #define SCM_WHITE_SPACES SCM_SINGLE_SPACES: case '\t'
53 SCM_API SCM scm_sym_dot
;
55 SCM_API SCM
scm_read_options (SCM setting
);
56 SCM_API SCM
scm_read (SCM port
);
57 SCM_API
size_t scm_read_token (int ic
, SCM
* tok_buf
, SCM port
, int weird
);
58 SCM_API SCM
scm_read_hash_extend (SCM chr
, SCM proc
);
59 SCM_INTERNAL
char *scm_i_scan_for_encoding (SCM port
);
60 SCM_API SCM
scm_file_encoding (SCM port
);
62 SCM_INTERNAL
void scm_i_input_error (const char *func
, SCM port
,
63 const char *message
, SCM arg
)
66 SCM_INTERNAL
void scm_init_read (void);
68 #endif /* SCM_READ_H */