defsubst
[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,
7 * 2011, 2012 Free Software Foundation, Inc.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 3 of
12 * the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301 USA
23 */
24
25 \f
26
27 #include "libguile/__scm.h"
28
29 \f
30
31 /* {Source properties}
32 */
33 #define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
34 #define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
35
36 SCM_API scm_t_bits scm_tc16_srcprops;
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_supports_source_properties_p (SCM obj);
46 SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
47 SCM_API SCM scm_source_property (SCM obj, SCM key);
48 SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
49 SCM_API SCM scm_source_properties (SCM obj);
50 SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
51 SCM_INTERNAL int scm_i_has_source_properties (SCM obj);
52 SCM_INTERNAL void scm_i_set_source_properties_x (SCM obj, long line, int col,
53 SCM fname);
54 SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
55 SCM_INTERNAL void scm_init_srcprop (void);
56
57
58 #endif /* SCM_SRCPROP_H */
59
60 /*
61 Local Variables:
62 c-file-style: "gnu"
63 End:
64 */