Merge commit 'a7bbba05838cabe2294f498e7008e1c51db6d664'
[bpt/guile.git] / libguile / values.h
... / ...
CommitLineData
1/* classes: h_files */
2
3#ifndef SCM_VALUES_H
4#define SCM_VALUES_H
5
6/* Copyright (C) 2000,2001, 2006, 2008, 2012 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
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.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
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
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24\f
25
26#include "libguile/__scm.h"
27
28SCM_API SCM scm_values_vtable;
29
30#define SCM_VALUESP(x) (SCM_STRUCTP (x)\
31 && scm_is_eq (scm_struct_vtable (x), scm_values_vtable))
32
33SCM_INTERNAL void scm_i_extract_values_2 (SCM obj, SCM *p1, SCM *p2);
34
35SCM_API SCM scm_values (SCM args);
36SCM_API SCM scm_c_values (SCM *base, size_t n);
37SCM_API size_t scm_c_nvalues (SCM obj);
38SCM_API SCM scm_c_value_ref (SCM obj, size_t idx);
39SCM_INTERNAL void scm_init_values (void);
40
41#endif /* SCM_VALUES_H */
42
43/*
44 Local Variables:
45 c-file-style: "gnu"
46 End:
47*/