On Mon, 05 Oct 2015 23:36:11 +0200, Benny Lofgren wrote:
> This reminds me of something I've always wondered, but never gotten
> around to ask about...
>
> Why is the return value in return statements almost always enclosed in
> parantheses in the codebase?
>
> It's not explained in style(9) as far as I know, so I guess it just
> crept in over time...
The old (CSRG) style(9) for return values was:
return (val); /* space before the paren */
The new (OpenBSD) style(9) is:
return val; /* no parens */
But there is still lots of code using the old style.
- todd