The FSF has a new address.
[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
22a52da1 6/* Copyright (C) 1995,1996,2000,2001 Free Software Foundation, Inc.
8c494e99 7 *
73be1d9e
MV
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
8c494e99 12 *
73be1d9e 13 * This library is distributed in the hope that it will be useful,
0f2d19dd 14 * but 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
92205699 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
73be1d9e 21 */
d3a6bc94 22
0f2d19dd 23\f
8c494e99 24
b4309c3c 25#include "libguile/__scm.h"
86d31dfe 26#include "libguile/smob.h"
0f2d19dd
JB
27
28\f
29
0f2d19dd
JB
30/* Variables
31 */
8c494e99
DH
32#define SCM_VARIABLEP(X) (!SCM_IMP (X) && SCM_TYP7(X) == scm_tc7_variable)
33#define SCM_VARIABLE_REF(V) SCM_CELL_OBJECT_1 (V)
34d19ef6 34#define SCM_VARIABLE_SET(V, X) SCM_SET_CELL_OBJECT_1 (V, X)
f7e69e20 35#define SCM_VARIABLE_LOC(V) (SCM_CELL_OBJECT_LOC ((V), 1))
0f2d19dd
JB
36
37\f
0f2d19dd 38
33b001fd
MV
39SCM_API SCM scm_make_variable (SCM init);
40SCM_API SCM scm_make_undefined_variable (void);
41SCM_API SCM scm_variable_p (SCM obj);
42SCM_API SCM scm_variable_ref (SCM var);
43SCM_API SCM scm_variable_set_x (SCM var, SCM val);
44SCM_API SCM scm_variable_bound_p (SCM var);
86d31dfe 45
33b001fd 46SCM_API void scm_i_variable_print (SCM var, SCM port, scm_print_state *pstate);
dbf5dfb3 47
33b001fd 48SCM_API void scm_init_variable (void);
0f2d19dd 49
22a52da1 50#endif /* SCM_VARIABLE_H */
89e00824
ML
51
52/*
53 Local Variables:
54 c-file-style: "gnu"
55 End:
56*/