aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-12-30 00:55:06 +0000
committerKim F. Storm2006-12-30 00:55:06 +0000
commitf083f9caee8c259727e97b84313c27073b955b5d (patch)
tree1e37de08edae49852feabc7002aef8a716f68bd6
parent5641671fabc6f3e6f6b2c218c3076e554737ec12 (diff)
downloademacs-f083f9caee8c259727e97b84313c27073b955b5d.tar.gz
emacs-f083f9caee8c259727e97b84313c27073b955b5d.zip
(Bindat Spec): Clarify using field names in
length specifications.
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/processes.texi16
2 files changed, 14 insertions, 7 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 5e66dd7bf9d..955d25e64c3 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12006-12-30 Kim F. Storm <storm@cua.dk>
2
3 * processes.texi (Bindat Spec): Clarify using field names in
4 length specifications.
5
12006-12-29 Kim F. Storm <storm@cua.dk> 62006-12-29 Kim F. Storm <storm@cua.dk>
2 7
3 * processes.texi (Bindat Spec): Explain eval forms and lengths better. 8 * processes.texi (Bindat Spec): Explain eval forms and lengths better.
diff --git a/lispref/processes.texi b/lispref/processes.texi
index 3992d79fca0..2fd1f5ec963 100644
--- a/lispref/processes.texi
+++ b/lispref/processes.texi
@@ -2166,13 +2166,15 @@ unpacked or packed. The result of the evaluation should be one of the
2166above-listed type specifications. 2166above-listed type specifications.
2167@end table 2167@end table
2168 2168
2169For a fixed-size field, the length @var{len} is given as an 2169For a fixed-size field, the length @var{len} is given as an integer
2170integer specifying the number of bytes in the field. When the 2170specifying the number of bytes in the field.
2171length of a field is not fixed, it typically depends on the value of a 2171
2172preceding field. In this case, the length can be given either by 2172When the length of a field is not fixed, it typically depends on the
2173that field's name as specified for @code{bindat-get-field} below, or by 2173value of a preceding field. In this case, the length @var{len} can be
2174an expression @code{(eval @var{form})} where @var{form} should 2174given either as a list @code{(@var{name} ...)} identifying a
2175evaluate to an integer, specifying the field length. 2175@dfn{field name} in the format specified for @code{bindat-get-field}
2176below, or by an expression @code{(eval @var{form})} where @var{form}
2177should evaluate to an integer, specifying the field length.
2176 2178
2177A field specification generally has the form @code{([@var{name}] 2179A field specification generally has the form @code{([@var{name}]
2178@var{handler})}. The square braces indicate that @var{name} is 2180@var{handler})}. The square braces indicate that @var{name} is