summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-07-08 22:39:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-07-08 22:39:38 -0700
commit341a9525b747189089870de84673e7e66728add8 (patch)
tree1d0d3867f0a2e8efb60cb269b9456dd3b7091868
parentdbca9adcf0c6612b013d42eb7b6b891770e72d72 (diff)
downloadtxr-341a9525b747189089870de84673e7e66728add8.tar.gz
txr-341a9525b747189089870de84673e7e66728add8.tar.bz2
txr-341a9525b747189089870de84673e7e66728add8.zip
doc: fix inappropriate code/codn in FFI types.
* txr.1: In some parametrized type descriptions, a parameter is typeset using .code or .codn rather than .meta or metn.
-rw-r--r--txr.112
1 files changed, 6 insertions, 6 deletions
diff --git a/txr.1 b/txr.1
index b1fe70fa..0c19d409 100644
--- a/txr.1
+++ b/txr.1
@@ -54666,7 +54666,7 @@ type, then an error exception is thrown.
If
.meti >> ( sym << value )
is given, then
-.code sym
+.meta sym
is given the specified value. The
.meta value
is an expression which must evaluate to an integer value in range of the FFI
@@ -54752,14 +54752,14 @@ The
and
.code type
pairs specify the structure members. The
-.code slot
+.meta slot
elements must be symbols, and the
-.code type
+.meta type
elements must be FFI type expressions.
When a Lisp object is converted to a struct, it must, firstly, be of the struct
type specified by
-.codn name .
+.metn name .
Secondly, that type must have all of the slots defined in the FFI type.
The slots are pulled from the Lisp structure in the order that they appear
in the FFI
@@ -54773,7 +54773,7 @@ Whenever a member is defined using
as the
.meta slot
name, that member represents anonymous padding. The corresponding
-.code type
+.meta type
expression is used only to determine the size of the padding only. Its data
transfer semantics is completely suppressed. When converting from Lisp, the
anonymous padding member simply generates a skip of the number of byte
@@ -54892,7 +54892,7 @@ temporary buffers are automatically created and destroyed by FFI
to manage the conversion.
The
-.code dim
+.meta dim
argument is an ordinary Lisp expression expanded and evaluated in the
top-level environment. It must produce a non-negative integer value.