Commit | Line | Data |
---|---|---|
ce212434 GH |
1 | /* classes: h_files */ |
2 | ||
3 | #ifndef SCM_VALUES_H | |
4 | #define SCM_VALUES_H | |
0527e687 | 5 | |
c15defef | 6 | /* Copyright (C) 2000,2001, 2006, 2008, 2012 Free Software Foundation, Inc. |
0527e687 | 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. | |
0527e687 | 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. | |
0527e687 | 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 | */ |
ce212434 GH |
23 | |
24 | \f | |
25 | ||
26 | #include "libguile/__scm.h" | |
27 | ||
33b001fd | 28 | SCM_API SCM scm_values_vtable; |
752af227 MV |
29 | |
30 | #define SCM_VALUESP(x) (SCM_STRUCTP (x)\ | |
bc36d050 | 31 | && scm_is_eq (scm_struct_vtable (x), scm_values_vtable)) |
752af227 | 32 | |
a85c1f93 MW |
33 | SCM_INTERNAL void scm_i_extract_values_2 (SCM obj, SCM *p1, SCM *p2); |
34 | ||
33b001fd | 35 | SCM_API SCM scm_values (SCM args); |
e1c80e6b AW |
36 | SCM_API SCM scm_c_values (SCM *base, size_t n); |
37 | SCM_API size_t scm_c_nvalues (SCM obj); | |
38 | SCM_API SCM scm_c_value_ref (SCM obj, size_t idx); | |
102dbb6f | 39 | SCM_INTERNAL void scm_init_values (void); |
ce212434 GH |
40 | |
41 | #endif /* SCM_VALUES_H */ | |
42 | ||
43 | /* | |
44 | Local Variables: | |
45 | c-file-style: "gnu" | |
46 | End: | |
47 | */ |