lkml.org 
[lkml]   [2021]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: function prototype element ordering
From
Date
On Wed, 2021-09-22 at 10:24 +0300, Alexey Dobriyan wrote:

> Attributes should be on their own line, they can be quite lengthy.
>
> __attribute__((...))
> [static] [inline] T f(A1 arg1, ...)
> {
> ...
> }
>
> There will be even more attributes in the future, both added by
> compilers and developers (const, pure, WUR), so let's make "prototype lane"
> for them.
>
> Same for structures:
>
> __attribute__((packed))
> struct S {
> };

Do you know if placing attributes like __packed/__aligned() before
definitions would work for all cases for structs/substructs/unions?


\
 
 \ /
  Last update: 2021-09-22 10:52    [W:0.095 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site