Commit | Line | Data |
---|---|---|
16ea9620 MV |
1 | /* classes: h_files */ |
2 | ||
3 | #ifndef SCM_INLINE_H | |
4 | #define SCM_INLINE_H | |
5 | ||
452c5ad9 | 6 | /* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010, |
9b977c83 | 7 | * 2011, 2012, 2013 Free Software Foundation, Inc. |
16ea9620 | 8 | * |
73be1d9e | 9 | * This library is free software; you can redistribute it and/or |
53befeb7 NJ |
10 | * modify it under the terms of the GNU Lesser General Public License |
11 | * as published by the Free Software Foundation; either version 3 of | |
12 | * the License, or (at your option) any later version. | |
16ea9620 | 13 | * |
53befeb7 NJ |
14 | * This library is distributed in the hope that it will be useful, but |
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
73be1d9e MV |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | * Lesser General Public License for more details. | |
16ea9620 | 18 | * |
73be1d9e MV |
19 | * You should have received a copy of the GNU Lesser General Public |
20 | * License along with this library; if not, write to the Free Software | |
53befeb7 NJ |
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
22 | * 02110-1301 USA | |
73be1d9e | 23 | */ |
16ea9620 MV |
24 | |
25 | /* This file is for inline functions. On platforms that don't support | |
4cf77f09 AW |
26 | inlining functions, they are turned into ordinary functions. On |
27 | platforms that do support inline functions, the definitions are still | |
28 | compiled into the library, once, in inline.c. */ | |
16ea9620 | 29 | |
f5c2af4b | 30 | #include "libguile/__scm.h" |
1e71eafb | 31 | |
16ea9620 | 32 | #include "libguile/gc.h" |
9bc4701c | 33 | #include "libguile/threads.h" |
2a610be5 | 34 | #include "libguile/array-handle.h" |
f5c2af4b | 35 | #include "libguile/ports.h" |
2a610be5 | 36 | #include "libguile/numbers.h" |
f5c2af4b | 37 | #include "libguile/error.h" |
16ea9620 | 38 | |
c8a1bdc4 | 39 | |
4cf77f09 | 40 | SCM_INLINE int scm_is_string (SCM x); |
f5c2af4b | 41 | |
ff670362 AW |
42 | SCM_INLINE SCM scm_cell (scm_t_bits car, scm_t_bits cdr); |
43 | SCM_INLINE SCM scm_double_cell (scm_t_bits car, scm_t_bits cbr, | |
44 | scm_t_bits ccr, scm_t_bits cdr); | |
c3365149 | 45 | SCM_INLINE SCM scm_words (scm_t_bits car, scm_t_uint32 n_words); |
6253f3f1 | 46 | |
ff670362 AW |
47 | #if SCM_CAN_INLINE || defined SCM_INLINE_C_IMPLEMENTING_INLINES |
48 | /* Either inlining, or being included from inline.c. */ | |
6253f3f1 | 49 | |
4cf77f09 | 50 | SCM_INLINE_IMPLEMENTATION int |
183f7849 LC |
51 | scm_is_string (SCM x) |
52 | { | |
dc7da0be | 53 | return SCM_HAS_TYP7 (x, scm_tc7_string); |
183f7849 | 54 | } |
f5c2af4b | 55 | |
16ea9620 | 56 | #endif |
16ea9620 | 57 | #endif |