summaryrefslogtreecommitdiff
path: root/libguile/strings.h
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2000-09-22 16:44:42 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2000-09-22 16:44:42 +0000
commitc1aef037101d36e33de853041e407593cf32a489 (patch)
treeb6c123d8e19c1065f7d23a05b12fba4611146f4c /libguile/strings.h
parent1bee0e70ca1609dee342cec0c0bc304098faf983 (diff)
downloadguile-c1aef037101d36e33de853041e407593cf32a489.tar.gz
* Added SCM_STRING_CHARS and SCM_SYMBOL_CHARS in order to, in the long run,
get rid of SCM_CHARS, which is shared between a large number of types, and thus makes it difficult to change the implementation of a single type.
Diffstat (limited to 'libguile/strings.h')
-rw-r--r--libguile/strings.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libguile/strings.h b/libguile/strings.h
index b56ab91f5..0d518d7e8 100644
--- a/libguile/strings.h
+++ b/libguile/strings.h
@@ -51,8 +51,8 @@
-#define SCM_SLOPPY_STRINGP(x) (SCM_TYP7S (x) == scm_tc7_string)
-#define SCM_STRINGP(x) (SCM_NIMP (x) && SCM_SLOPPY_STRINGP (x))
+#define SCM_STRINGP(x) (SCM_NIMP (x) && (SCM_TYP7S (x) == scm_tc7_string))
+#define SCM_STRING_CHARS(x) ((char *) (SCM_CELL_WORD_1 (x)))
/* Is X a writable string (i.e., not a substring)? */
#define SCM_RWSTRINGP(x) (SCM_NIMP (x) && (SCM_TYP7 (x) == scm_tc7_string))
@@ -82,6 +82,7 @@ extern void scm_init_strings (void);
#if (SCM_DEBUG_DEPRECATED == 0)
+#define SCM_SLOPPY_STRINGP(x) (SCM_STRINGP(x))
#define SCM_NSTRINGP(x) (!SCM_STRINGP(x))
#define SCM_NRWSTRINGP(x) (! SCM_RWSTRINGP (x))