From 14cc59eef8374ac8013a05d5d14c4cd4af9d0979 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Jan 2022 18:04:58 +0100 Subject: 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. --- docs/syscall_descriptions_syntax.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/syscall_descriptions_syntax.md') 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: -- cgit mrf-deployment