[ipxe-devel] [PATCH] Format HTTP Range with unsigned long long
Linus Lüssing
linus.luessing at c0d3.blue
Tue May 30 10:24:37 UTC 2017
On Thu, May 25, 2017 at 11:33:45AM +0100, Michael Brown wrote:
> It can't sensibly be made a configurable build option; I try hard to avoid
> #ifdef spaghetti and this would definitely fall into that category.
Right, #ifdef spaghetti in c files is ugly. But, hm, for the Linux
kernel, there's often a "stubs" style used in header files for
just that, to avoid dragging #ifdef's all over the place. For
example:
http://elixir.free-electrons.com/linux/v4.10/source/net/batman-adv/distributed-arp-table.h#L106
Or:
http://elixir.free-electrons.com/linux/latest/source/include/linux/if_bridge.h#L64
What do you think, in general, could such a concept be applicable for
iPXE build options, too?
Regards, Linus
More information about the ipxe-devel
mailing list