Re: [RFC 2/2] Future Proofing: Pass around pointers to either functions or data

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

 



Erik Faye-Lund <kusmabite@xxxxxxxxx> writes:

> On Tue, Mar 29, 2011 at 5:28 PM, Michael Witten <mfwitten@xxxxxxxxx> wrote:
>> +#define ALT_ODB_FN_INFO_FUNC(variable, function) \
>> + Â Â Â union alt_odb_fn_info variable = { \
>> + Â Â Â Â Â Â Â .func = (alt_odb_fn_cb)function \
>> + Â Â Â }
>> +#define ALT_ODB_FN_INFO_DATA(variable, data_) \
>> + Â Â Â union alt_odb_fn_info variable = { \
>> + Â Â Â Â Â Â Â .data = data_ \
>> + Â Â Â }
>
> We try to stay away from C99 features like this, as it doesn't work on
> all compilers we target.

I had an impression that 1/2 is a good fix but 2/2 is going overboard with
a theoretical exercise without real gain.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]