Xcriber51 <ken@[EMAIL PROTECTED]
> wrote:
> // These macros are only for convenience, to save the
> // client from having to use the address-of op '&'.
>
> #define equalTo &eq
> #define lessThan <
> #define greaterThan >
> #define lessThanEqualTo &le
> #define greaterThanEqualTo &ge
> #define notEqualTo &ne
Christian Brunschen already took my answer, so I am reduced to picking
nits.
These macros are unnecessary. In C, the & and * operators are redundant
when working with function pointers. If "func" is the name of a function,
then "func" and "&func" give you precisely the same thing, both in terms
of value and type. Likewise, if "funcPtr" is a function pointer, "funcPtr"
and "*funcPtr" are identical.
That is all.
--
Michael Ash
Rogue Amoeba Software


|