diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-01-06 18:04:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-01-11 16:30:08 +0100 |
| commit | 14cc59eef8374ac8013a05d5d14c4cd4af9d0979 (patch) | |
| tree | 558db1b673e2b96ddefd7cb4776b7d6fe28ca9ec /docs/syscall_descriptions_syntax.md | |
| parent | 1a2fb60b1e34cbc7f21351da8f9e3e253173bde8 (diff) | |
pkg/compiler: prohibit use of direction attribute on union fields
Direction attributes on unions work in a confusing way and don't do
what users may think they do. Now we have out_overlay attribute
for structs that allows to have overlapping input and output fields.
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
| -rw-r--r-- | docs/syscall_descriptions_syntax.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md index cf03350e0..dd5dbeb3d 100644 --- a/docs/syscall_descriptions_syntax.md +++ b/docs/syscall_descriptions_syntax.md @@ -168,12 +168,10 @@ Unions are described as: ``` unionname "[" "\n" - (fieldname type ("(" fieldattribute* ")")? "\n")+ + (fieldname type "\n")+ "]" ("[" attribute* "]")? ``` -Field attributes are as defined for [structs](#structs). - Unions can have attributes specified in square brackets after the union. Attributes are: |
