diff options
author | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2000-10-26 18:18:28 +0000 |
---|---|---|
committer | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2000-10-26 18:18:28 +0000 |
commit | e9bfab50e4ec7787db05605727a06f98fe30f5b6 (patch) | |
tree | 2281aa0aaf6967a7eeed0063dbff031454fc0d3e /libguile/strings.h | |
parent | c6c2ea9fa8ca18f59d37b0d6d1d52d36e11626ea (diff) | |
download | guile-e9bfab50e4ec7787db05605727a06f98fe30f5b6.tar.gz |
* String comparison functions don't accept symbols as arguments any more.
* Added macro SCM_STRING_COERCE_0TERMINATION_X.
Diffstat (limited to 'libguile/strings.h')
-rw-r--r-- | libguile/strings.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/strings.h b/libguile/strings.h index e6a9cf8b6..8e3ca5eb3 100644 --- a/libguile/strings.h +++ b/libguile/strings.h @@ -59,6 +59,10 @@ /* Is X a writable string (i.e., not a substring)? */ #define SCM_RWSTRINGP(x) (SCM_NIMP (x) && (SCM_TYP7 (x) == scm_tc7_string)) +#define SCM_STRING_COERCE_0TERMINATION_X(x) \ + { if (SCM_NIMP (x) && (SCM_TYP7 (x) == scm_tc7_substring)) \ + x = scm_makfromstr (SCM_ROCHARS (x), SCM_STRING_LENGTH (x), 0); } + extern SCM scm_string_p (SCM x); |