Merge remote-tracking branch 'origin/stable-2.0'
[bpt/guile.git] / libguile / srcprop.h
1 /* classes: h_files */
2
3 #ifndef SCM_SRCPROP_H
4 #define SCM_SRCPROP_H
5
6 /* Copyright (C) 1995,1996,2000,2001, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
7 *
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.
12 *
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.
17 *
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
21 * 02110-1301 USA
22 */
23
24 \f
25
26 #include "libguile/__scm.h"
27
28 \f
29
30 /* {Source properties}
31 */
32 #define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
33 #define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
34
35 SCM_API scm_t_bits scm_tc16_srcprops;
36 SCM_INTERNAL SCM scm_source_whash;
37
38 SCM_API SCM scm_sym_filename;
39 SCM_API SCM scm_sym_copy;
40 SCM_API SCM scm_sym_line;
41 SCM_API SCM scm_sym_column;
42
43 \f
44
45 SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
46 SCM_API SCM scm_source_property (SCM obj, SCM key);
47 SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
48 SCM_API SCM scm_source_properties (SCM obj);
49 SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
50 SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
51 SCM_INTERNAL void scm_init_srcprop (void);
52
53
54 #endif /* SCM_SRCPROP_H */
55
56 /*
57 Local Variables:
58 c-file-style: "gnu"
59 End:
60 */