Optimize 'string-hash'.
[bpt/guile.git] / libguile / srcprop.h
... / ...
CommitLineData
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
36SCM_API scm_t_bits scm_tc16_srcprops;
37
38SCM_API SCM scm_sym_filename;
39SCM_API SCM scm_sym_copy;
40SCM_API SCM scm_sym_line;
41SCM_API SCM scm_sym_column;
42
43\f
44
45SCM_API SCM scm_supports_source_properties_p (SCM obj);
46SCM_API SCM scm_make_srcprops (long line, int col, SCM fname, SCM copy, SCM plist);
47SCM_API SCM scm_source_property (SCM obj, SCM key);
48SCM_API SCM scm_set_source_property_x (SCM obj, SCM key, SCM datum);
49SCM_API SCM scm_source_properties (SCM obj);
50SCM_API SCM scm_set_source_properties_x (SCM obj, SCM props);
51SCM_INTERNAL int scm_i_has_source_properties (SCM obj);
52SCM_INTERNAL void scm_i_set_source_properties_x (SCM obj, long line, int col,
53 SCM fname);
54SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
55SCM_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*/