summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2000-03-12 18:41:47 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2000-03-12 18:41:47 +0000
commitf8a72ca4c983b3e4c19bffb9ec1e9b433331df8b (patch)
tree73c2dbcb082e7e91499c730867c182f9239d233f
parentf12677062e15015d7ef7d36fe3d103a77d1fefca (diff)
downloadguile-f8a72ca4c983b3e4c19bffb9ec1e9b433331df8b.tar.gz
*** empty log message ***
-rw-r--r--NEWS17
1 files changed, 17 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 33f7a3750..456a69e36 100644
--- a/NEWS
+++ b/NEWS
@@ -157,6 +157,23 @@ the readability of argument checking.
** All (nearly?) K&R prototypes for functions replaced with ANSI C equivalents.
+** New macros: SCM_PACK, SCM_UNPACK, SCM_UNPACK_CAR
+
+Compose/decompose an SCM value.
+
+The SCM type is now defined as void * on most architectures. This
+makes it easier to find several types of bugs, for example when SCM
+values are treated as integers without conversion. Values of the SCM
+type should be treated as "atomic" values. These macros are used when
+composing/decomposing an SCM value, either because you want to access
+individual bits, or because you want to treat it as an integer value.
+
+E.g., in order to set bit 7 in an SCM value x, use the expression
+
+ SCM_PACK (SCM_UNPACK (x) | 0x80)
+
+SCM_UNPACK_CAR (X) is defined as SCM_UNPACK (SCM_CAR (X))
+
** Port internals: the rw_random variable in the scm_port structure
must be set to non-zero in any random access port. In recent Guile
releases it was only set for bidirectional random-access ports.