From 0069c0b05d810c001c1ab9947b1f8f333caede14 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 20 May 2022 00:37:38 -0700 Subject: ffi: new pack type operator; align increases only. * ffi.c (pack_s): New symbol variable. (ffi_type_compile): Handle new pack type operator together with align. Allow a one-argument form of align and pack in which the value is defaulted. The behavior of align changes: align can only increase alignment now, never decrease, so for instance (align 1 ...) does nothing. pack must be used to decrease alignment. Furthermore, for certain argument types, pack performs transformations of the type syntax, rather than compiling the argument type and producing a variant of it with altered alignment. * txr.1: Documented. * stdlib/doc-syms.tl: Updated. --- stdlib/doc-syms.tl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index 037675db..7301068a 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -100,7 +100,7 @@ ("ai-passive" "N-020DFFDE") ("ai-v4mapped" "N-020DFFDE") ("alet" "N-008215E0") - ("align" "N-01C7BC08") + ("align" "N-00093D01") ("alignof" "N-000F730E") ("alist-nremove" "N-000CD07F") ("alist-remove" "N-001A53C4") @@ -1398,6 +1398,7 @@ ("ors" "N-02D33A3D") ("oust" "N-0126D3FF") ("output" "N-0159EBE7") + ("pack" "N-00093D01") ("package-alist" "N-017F684C") ("package-fallback-list" "N-027A535C") ("package-foreign-symbols" "N-030C06F5") -- cgit v1.2.3