[rfc] macros and macro usage

Bernhard Fischer rep.dot.nop at gmail.com
Sat Jun 14 19:51:30 UTC 2008


On Sat, Jun 14, 2008 at 09:20:08PM +0200, Cristian Ionescu-Idbohrn wrote:
>--- networking/udhcp/dhcpc.c.~1~	2008-06-14 19:37:37.000000000 +0200
>+++ networking/udhcp/dhcpc.c	2008-06-14 20:24:20.000000000 +0200
>@@ -201,40 +197,26 @@
> 		OPT_f = 1 << 20,
> /* The rest has variable bit positions, need to be clever */
-> 		OPTBIT_f = 20,
+ 		OPTBIT_f = 20

->+		USE_FOR_MMU(OPTBIT_b,)
->+		USE_FEATURE_UDHCPC_ARPING(OPTBIT_a,)
->+		USE_FEATURE_UDHCP_PORT(OPTBIT_P,)
->+		USE_FOR_MMU(OPT_b = 1 << OPTBIT_b,)
->+		USE_FEATURE_UDHCPC_ARPING(OPT_a = 1 << OPTBIT_a,)
->+		USE_FEATURE_UDHCP_PORT(OPT_P = 1 << OPTBIT_P,)
+		USE_FOR_MMU(,OPTBIT_b)
+		USE_FEATURE_UDHCPC_ARPING(,OPTBIT_a)
+		USE_FEATURE_UDHCP_PORT(,OPTBIT_P)
+		USE_FOR_MMU(,OPT_b = 1 << OPTBIT_b)
+		USE_FEATURE_UDHCPC_ARPING(,OPT_a = 1 << OPTBIT_a)
+		USE_FEATURE_UDHCP_PORT(,OPT_P = 1 << OPTBIT_P)

> 	};



More information about the busybox mailing list