diff options
| author | Kim F. Storm | 2006-12-30 00:55:06 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-12-30 00:55:06 +0000 |
| commit | f083f9caee8c259727e97b84313c27073b955b5d (patch) | |
| tree | 1e37de08edae49852feabc7002aef8a716f68bd6 | |
| parent | 5641671fabc6f3e6f6b2c218c3076e554737ec12 (diff) | |
| download | emacs-f083f9caee8c259727e97b84313c27073b955b5d.tar.gz emacs-f083f9caee8c259727e97b84313c27073b955b5d.zip | |
(Bindat Spec): Clarify using field names in
length specifications.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/processes.texi | 16 |
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 @@ | |||
| 1 | 2006-12-30 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * processes.texi (Bindat Spec): Clarify using field names in | ||
| 4 | length specifications. | ||
| 5 | |||
| 1 | 2006-12-29 Kim F. Storm <storm@cua.dk> | 6 | 2006-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 | |||
| 2166 | above-listed type specifications. | 2166 | above-listed type specifications. |
| 2167 | @end table | 2167 | @end table |
| 2168 | 2168 | ||
| 2169 | For a fixed-size field, the length @var{len} is given as an | 2169 | For a fixed-size field, the length @var{len} is given as an integer |
| 2170 | integer specifying the number of bytes in the field. When the | 2170 | specifying the number of bytes in the field. |
| 2171 | length of a field is not fixed, it typically depends on the value of a | 2171 | |
| 2172 | preceding field. In this case, the length can be given either by | 2172 | When the length of a field is not fixed, it typically depends on the |
| 2173 | that field's name as specified for @code{bindat-get-field} below, or by | 2173 | value of a preceding field. In this case, the length @var{len} can be |
| 2174 | an expression @code{(eval @var{form})} where @var{form} should | 2174 | given either as a list @code{(@var{name} ...)} identifying a |
| 2175 | evaluate to an integer, specifying the field length. | 2175 | @dfn{field name} in the format specified for @code{bindat-get-field} |
| 2176 | below, or by an expression @code{(eval @var{form})} where @var{form} | ||
| 2177 | should evaluate to an integer, specifying the field length. | ||
| 2176 | 2178 | ||
| 2177 | A field specification generally has the form @code{([@var{name}] | 2179 | A 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 |