6 /* Copyright (C) 2000,2001, 2006, 2008, 2012 Free Software Foundation, Inc.
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.
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.
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
26 #include "libguile/__scm.h"
28 SCM_API SCM scm_values_vtable
;
30 #define SCM_VALUESP(x) (SCM_STRUCTP (x)\
31 && scm_is_eq (scm_struct_vtable (x), scm_values_vtable))
33 SCM_INTERNAL
void scm_i_extract_values_2 (SCM obj
, SCM
*p1
, SCM
*p2
);
35 SCM_API SCM
scm_values (SCM args
);
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
);
39 SCM_INTERNAL
void scm_init_values (void);
41 #endif /* SCM_VALUES_H */