summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-04-19 19:03:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-04-19 19:03:01 -0700
commit428eb38cf4c0b2c1677a88aed6f7fc2d78903538 (patch)
tree67fd238acc7e73aab6b06a7e280b826838140dcb /txr.1
parent8a1af20f71b6b75dfc25e32c2c190ea1c539d484 (diff)
downloadtxr-428eb38cf4c0b2c1677a88aed6f7fc2d78903538.tar.gz
txr-428eb38cf4c0b2c1677a88aed6f7fc2d78903538.tar.bz2
txr-428eb38cf4c0b2c1677a88aed6f7fc2d78903538.zip
New function: allocate-struct.
* struct.c (struct_init): allocate-struct intrinsic registered. (allocate_struct): New static function. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.124
1 files changed, 24 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 031837c2..d42ff4ea 100644
--- a/txr.1
+++ b/txr.1
@@ -25126,6 +25126,30 @@ The following equivalences hold:
<--> (make-struct a nil v0 v1 v2 ...)
.brev
+.coNP Function @ allocate-struct
+.synb
+.mets (allocate-struct << type )
+.syne
+.desc
+The
+.code allocate-struct
+provides a low-level allocator for structure objects.
+
+The
+.meta type
+argument must either be a
+.code struct-type
+object, or else a symbol which is the name of a structure.
+
+The
+.code allocate-struct
+creates and returns a new instance of
+.meta type
+all of whose instance slots take on the value
+.codn nil .
+No initializations are performed. The struct type's
+registered initialization functions are not invoked.
+
.coNP Function @ copy-struct
.synb
.mets (copy-struct << struct-obj )