threadsafe get-byte-or-eof, peek-byte-or-eof
[bpt/guile.git] / libguile / srcprop.h
CommitLineData
8a5ae618
MD
1/* classes: h_files */
2
b29058ff
DH
3#ifndef SCM_SRCPROP_H
4#define SCM_SRCPROP_H
5
d1c4720c 6/* Copyright (C) 1995,1996,2000,2001, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
b29058ff 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.
b29058ff 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.
b29058ff 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 */
d3a6bc94 23
8a5ae618
MD
24\f
25
b4309c3c 26#include "libguile/__scm.h"
8a5ae618
MD
27
28\f
29
8a5ae618
MD
30/* {Source properties}
31 */
b0763985 32#define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
f5710d53 33#define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
e038c042 34
b0763985 35SCM_API scm_t_bits scm_tc16_srcprops;
8a5ae618 36
33b001fd
MV
37SCM_API SCM scm_sym_filename;
38SCM_API SCM scm_sym_copy;
39SCM_API SCM scm_sym_line;
40SCM_API SCM scm_sym_column;
34019bd6 41
8a5ae618
MD
42\f
43
33b001fd
MV
44SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
45SCM_API SCM scm_source_property (SCM obj, SCM key);
46SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
47SCM_API SCM scm_source_properties (SCM obj);
48SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
26c8cc14
AW
49SCM_INTERNAL int scm_i_has_source_properties (SCM obj);
50SCM_INTERNAL void scm_i_set_source_properties_x (SCM obj, long line, int col,
51 SCM fname);
0f458a37 52SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
102dbb6f 53SCM_INTERNAL void scm_init_srcprop (void);
8a5ae618 54
bc76d628 55
b29058ff 56#endif /* SCM_SRCPROP_H */
89e00824
ML
57
58/*
59 Local Variables:
60 c-file-style: "gnu"
61 End:
62*/