6 /* Copyright (C) 1995, 1996, 2000, 2001, 2006, 2008, 2009, 2010,
7 * 2011, 2012 Free Software Foundation, Inc.
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.
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.
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
27 #include "libguile/__scm.h"
31 /* {Source properties}
33 #define SCM_PROCTRACEP(x) (scm_is_true (scm_procedure_property (x, scm_sym_trace)))
34 #define SCM_SOURCE_PROPERTY_FLAG_BREAK 1
36 SCM_API scm_t_bits scm_tc16_srcprops
;
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
;
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
,
54 SCM_API SCM
scm_cons_source (SCM xorig
, SCM x
, SCM y
);
55 SCM_INTERNAL
void scm_init_srcprop (void);
58 #endif /* SCM_SRCPROP_H */