extract enum constants as their integer values
commit2e80169567bb940c933117249ab0f9b6b8b8fdb8
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 10 Feb 2014 11:52:46 +0000 (10 12:52 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:30 +0000 (25 14:36 +0100)
treeadd7647592468668d9036a17b353e0879f31ea60
parent5cd5a44c40300144b2835c0f16b16e9264181600
extract enum constants as their integer values

Prior to this commit, enum constants were extracted as symbolic constants.
This could lead to inefficiencies since we would lose any information
on the relative order of these constants, especially whether or not
they are equal to each other.
Extract them as their integer values instead.

Requested-by: Uday R Bondhugula <udayreddy@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
scan.h
tests/enum.c [new file with mode: 0644]
tests/enum.scop [new file with mode: 0644]