mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Inline `scm_is_string'.
* libguile/strings.c (scm_is_string): Move to... * libguile/inline.h (scm_is_string): ... here. Inline.
This commit is contained in:
parent
18f06db925
commit
183f784947
2 changed files with 8 additions and 5 deletions
|
@ -332,6 +332,14 @@ scm_is_pair (SCM x)
|
||||||
return SCM_I_CONSP (x);
|
return SCM_I_CONSP (x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SCM_INLINE_C_INCLUDING_INLINE_H
|
||||||
|
SCM_C_EXTERN_INLINE
|
||||||
|
#endif
|
||||||
|
int
|
||||||
|
scm_is_string (SCM x)
|
||||||
|
{
|
||||||
|
return SCM_NIMP (x) && (SCM_TYP7 (x) == scm_tc7_string);
|
||||||
|
}
|
||||||
|
|
||||||
/* Port I/O. */
|
/* Port I/O. */
|
||||||
|
|
||||||
|
|
|
@ -1405,11 +1405,6 @@ SCM_DEFINE (scm_string_append, "string-append", 0, 0, 1,
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#undef FUNC_NAME
|
||||||
|
|
||||||
int
|
|
||||||
scm_is_string (SCM obj)
|
|
||||||
{
|
|
||||||
return IS_STRING (obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Conversion to/from other encodings. */
|
/* Conversion to/from other encodings. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue