diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-19 19:03:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-19 19:03:01 -0700 |
commit | 428eb38cf4c0b2c1677a88aed6f7fc2d78903538 (patch) | |
tree | 67fd238acc7e73aab6b06a7e280b826838140dcb /txr.1 | |
parent | 8a1af20f71b6b75dfc25e32c2c190ea1c539d484 (diff) | |
download | txr-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.1 | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 ) |