This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Expand mempcpy into memcpy


On 02/06/13 10:12, Chris Metcalf wrote:
> just following the standard rule of "parenthesize the use of all macro arguments"

But we don't follow that rule.  If we did, we'd have to
write macro definitions like this:

  #define foo(x, y) bar ((y), (x))

with the extra parentheses; which we typically don't do.

Of course it's a minor point.  There's a style where one always
parenthesizes the operand of "return", e.g., "return (x);".
For people used to that style, it's weird to see "return x;" and
at first it looks like a mistake.  But one gets used to it...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]