From 428eb38cf4c0b2c1677a88aed6f7fc2d78903538 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 19 Apr 2019 19:03:01 -0700 Subject: New function: allocate-struct. * struct.c (struct_init): allocate-struct intrinsic registered. (allocate_struct): New static function. * txr.1: Documented. --- txr.1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'txr.1') 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 ) -- cgit v1.2.3