Enhance convert-constants list generation
authorIustin Pop <iustin@google.com>
Wed, 22 Aug 2012 15:57:33 +0000 (17:57 +0200)
committerIustin Pop <iustin@google.com>
Mon, 3 Sep 2012 12:13:16 +0000 (14:13 +0200)
commit806aa12402ff94889b3f7101986c86873684762c
tree2fd84a1cc61465915731186bbf2490456b03239d
parent998b6f8b5f02c2277490dc82b32b722ca8e720f5
Enhance convert-constants list generation

While looking at the hypervisor types in Constants.hs, I saw that the
'hyperTypes' list is using strings instead of names. This is due to
the fact that we require the entire elements in the list to be
identified (homogeneous lists), but the string "xen-pvm" is declared
by both 'defaultEnabledHypervisor' and 'htXenPvm'.

We can improve convert-constants by adding a list of names that we
know (statically) don't declare, but instead reuse values. Unless we
have an ADT parser, this is the best we can do, I think.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Murawska <agatamurawska@google.com>
autotools/convert-constants