[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parenthesized return



Hello,

I noticed that OpenBSD code uses parentheses around C function return
expressions. I don't know why, so I checked style(9). I couldn't find
any explanation for why it is done. I can even imagine somebody
interpreting "Don't use parentheses unless they're required for
precedence, the statement is confusing without them, or the compiler
generates a warning without them" as a direct instruction not to use
parentheses in return. I also googled a bit without much success.

So, could somebody explain when parentheses helps in return?

Thanks
Greg

P.S. Jason, that was you who stirred up my curiosity.



Visit your host, monkey.org