On Wed, 11 Jul 2012, Joe Perches wrote:
> On Wed, 2012-07-11 at 13:32 -0400, Robert P. J. Day wrote:
> []
> > diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
> []
> > +A newer technique is to use the GCC extension of being able to place
> > +statements and declarations in an
On Wed, 11 Jul 2012, Joe Perches wrote:
On Wed, 2012-07-11 at 13:32 -0400, Robert P. J. Day wrote:
[]
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
[]
+A newer technique is to use the GCC extension of being able to place
+statements and declarations in an expression,
On Wed, 2012-07-11 at 13:32 -0400, Robert P. J. Day wrote:
[]
> diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
[]
> +A newer technique is to use the GCC extension of being able to place
> +statements and declarations in an expression, as with this example from
> +the header
Since defining multi-line macros using statements and declarations in
expressions is fairly common in the kernel, add this to CodingStyle.
Signed-off-by: Robert P. J. Day
---
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index cb9258b..7eb0734 100644
---
Since defining multi-line macros using statements and declarations in
expressions is fairly common in the kernel, add this to CodingStyle.
Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca
---
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index cb9258b..7eb0734 100644
On Wed, 2012-07-11 at 13:32 -0400, Robert P. J. Day wrote:
[]
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
[]
+A newer technique is to use the GCC extension of being able to place
+statements and declarations in an expression, as with this example from
+the linux/kernel.h
6 matches
Mail list logo