[Patch] Fix collection entry parsing in libusbhid

Markus Brueffer markus at brueffer.de
Thu Feb 16 05:00:05 PST 2006


Am Thursday 16 February 2006 08:47 schrieb Alexander Leidinger:
> Markus Brueffer <markus at brueffer.de> wrote:
> > Furthermore I have removed the loop in REPORT_SAVED_COLL. If someone
> > knows why
> > it was there in the first place, please share your wisdom :)
>
> This is done in many places in the source. It's a common way of writting a
> macro which is usable like a function (yes, this macro returns, so it
> doesn't _work_ like a function, but this is not the point). Usually this is
> used with macros which take arguments. You just can add a ';' after the use
> of the macro without having to remember if you need to do it, or if your
> compiler may moan because of an empty statement.
>
> Have a look into style(9), it also has to say something about it.

Ah, I see. Thanks for the explanation. I have updated the diff to not remove 
the loop.

Markus

-- 
Markus Brueffer    | GPG-Key: http://people.FreeBSD.org/~markus/markus.asc
markus at brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4
markus at FreeBSD.org | FreeBSD: The Power to Serve!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bluetooth/attachments/20060216/c2dd9719/attachment.bin


More information about the freebsd-bluetooth mailing list