lib/meta-flow: introduce a macro, CASE_MFF_REGS, to catch "case MFF_REG<N>:"
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 27 Jun 2012 14:23:25 +0000 (07:23 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jun 2012 14:24:28 +0000 (07:24 -0700)
commit0d7e2fe4d5decafe1d52c4dbdb0d77d17ac53a80
treeb2e56f16f6cfaf112be3e9008f9832fd1799323d
parent2716c204ed47c5f572e3d1a0138c964f44be90af
lib/meta-flow: introduce a macro, CASE_MFF_REGS, to catch "case MFF_REG<N>:"

Introduce a macro instead for
With this macro, the code is a bit reduced.
test: compile-tested and unit tests passed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
[blp@nicira.com moved the macro declaration, moved trailing colon from
 macro definition to invocation, adjusted style slightly]
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/meta-flow.c
lib/meta-flow.h