use guile eval for elisp tree-il
[bpt/guile.git] / libguile / variable.h
CommitLineData
0f2d19dd
JB
1/* classes: h_files */
2
22a52da1
DH
3#ifndef SCM_VARIABLE_H
4#define SCM_VARIABLE_H
8c494e99 5
dc7da0be 6/* Copyright (C) 1995,1996,2000,2001, 2006, 2008, 2011 Free Software Foundation, Inc.
8c494e99 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.
8c494e99 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.
8c494e99 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
0f2d19dd 24\f
8c494e99 25
b4309c3c 26#include "libguile/__scm.h"
86d31dfe 27#include "libguile/smob.h"
0f2d19dd
JB
28
29\f
30
0f2d19dd
JB
31/* Variables
32 */
dc7da0be 33#define SCM_VARIABLEP(X) (SCM_HAS_TYP7 (X, scm_tc7_variable))
8c494e99 34#define SCM_VARIABLE_REF(V) SCM_CELL_OBJECT_1 (V)
34d19ef6 35#define SCM_VARIABLE_SET(V, X) SCM_SET_CELL_OBJECT_1 (V, X)
f7e69e20 36#define SCM_VARIABLE_LOC(V) (SCM_CELL_OBJECT_LOC ((V), 1))
0f2d19dd
JB
37
38\f
0f2d19dd 39
33b001fd
MV
40SCM_API SCM scm_make_variable (SCM init);
41SCM_API SCM scm_make_undefined_variable (void);
42SCM_API SCM scm_variable_p (SCM obj);
43SCM_API SCM scm_variable_ref (SCM var);
44SCM_API SCM scm_variable_set_x (SCM var, SCM val);
a8aa4c0b 45SCM_API SCM scm_variable_unset_x (SCM var);
33b001fd 46SCM_API SCM scm_variable_bound_p (SCM var);
86d31dfe 47
102dbb6f 48SCM_INTERNAL void scm_i_variable_print (SCM var, SCM port, scm_print_state *pstate);
dbf5dfb3 49
102dbb6f 50SCM_INTERNAL void scm_init_variable (void);
0f2d19dd 51
22a52da1 52#endif /* SCM_VARIABLE_H */
89e00824
ML
53
54/*
55 Local Variables:
56 c-file-style: "gnu"
57 End:
58*/