[Patch] Fix collection entry parsing in libusbhid

Alexander Leidinger Alexander at Leidinger.net
Wed Feb 15 23:47:25 PST 2006


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.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
ANDROPHOBIA:
	Fear of men.




More information about the freebsd-usb mailing list