#ifndef SCM_VALUES_INTERNAL_H #define SCM_VALUES_INTERNAL_H /* Copyright 2000-2001,2006,2008,2012,2018,2025 Free Software Foundation, Inc. This file is part of Guile. Guile is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Guile is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Guile. If not, see . */ #include "libguile/values.h" struct scm_values { scm_t_bits tag_and_count; SCM values[]; }; static inline struct scm_values* scm_to_values (SCM x) { if (!scm_is_values (x)) abort (); return (struct scm_values*) SCM_UNPACK_POINTER (x); } static inline SCM scm_from_values (struct scm_values *values) { return SCM_PACK_POINTER (values); } static inline size_t scm_values_count (struct scm_values *x) { return x->tag_and_count >> 8; } static inline SCM scm_values_ref (struct scm_values *values, size_t n) { return values->values[n]; } SCM_INTERNAL void scm_values_extract_2 (SCM obj, SCM *p1, SCM *p2); SCM_INTERNAL void scm_init_values (void); #endif /* SCM_VALUES_INTERNAL_H */