diff options
| -rw-r--r-- | lisp/emacs-lisp/bindat.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/bindat.el b/lisp/emacs-lisp/bindat.el index d8b4b4f6c19..7ed01e4bdea 100644 --- a/lisp/emacs-lisp/bindat.el +++ b/lisp/emacs-lisp/bindat.el | |||
| @@ -85,7 +85,7 @@ | |||
| 85 | ;; (items u8) | 85 | ;; (items u8) |
| 86 | ;; (fill 3) | 86 | ;; (fill 3) |
| 87 | ;; (item repeat (items) | 87 | ;; (item repeat (items) |
| 88 | ;; ((struct data-spec))))) | 88 | ;; (struct data-spec)))) |
| 89 | ;; | 89 | ;; |
| 90 | ;; | 90 | ;; |
| 91 | ;; A binary data representation may look like | 91 | ;; A binary data representation may look like |
| @@ -131,7 +131,7 @@ | |||
| 131 | ;; | ( [FIELD] align LEN ) -- skip to next multiple of LEN bytes | 131 | ;; | ( [FIELD] align LEN ) -- skip to next multiple of LEN bytes |
| 132 | ;; | ( [FIELD] struct SPEC_NAME ) | 132 | ;; | ( [FIELD] struct SPEC_NAME ) |
| 133 | ;; | ( [FIELD] union TAG_VAL (TAG SPEC)... [(t SPEC)] ) | 133 | ;; | ( [FIELD] union TAG_VAL (TAG SPEC)... [(t SPEC)] ) |
| 134 | ;; | ( [FIELD] repeat COUNT SPEC ) | 134 | ;; | ( [FIELD] repeat COUNT ITEM... ) |
| 135 | 135 | ||
| 136 | ;; -- In (eval EXPR), the value of the last field is available in | 136 | ;; -- In (eval EXPR), the value of the last field is available in |
| 137 | ;; the dynamically bound variable `last'. | 137 | ;; the dynamically bound variable `last'. |
| @@ -151,7 +151,8 @@ | |||
| 151 | ;; -- Note: 32 bit values may be limited by emacs' INTEGER | 151 | ;; -- Note: 32 bit values may be limited by emacs' INTEGER |
| 152 | ;; implementation limits. | 152 | ;; implementation limits. |
| 153 | ;; | 153 | ;; |
| 154 | ;; -- Example: bits 2 will map bytes 0x1c 0x28 to list (2 3 7 11 13) | 154 | ;; -- Example: `bits 2' will unpack 0x28 0x1c to (2 3 4 11 13) |
| 155 | ;; and 0x1c 0x28 to (3 5 10 11 12). | ||
| 155 | 156 | ||
| 156 | ;; FIELD ::= ( eval EXPR ) -- use result as NAME | 157 | ;; FIELD ::= ( eval EXPR ) -- use result as NAME |
| 157 | ;; | NAME | 158 | ;; | NAME |