From 6402ce41b86eab1f2c1b2e09b24982e5d559b171 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 21 Sep 2010 12:26:23 +0300 Subject: [PATCH] Use the enum name instead of value when generating the tagtable source - This makes the table populated with actual enums instead of the numbers they present --- lib/gentagtbl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gentagtbl.sh b/lib/gentagtbl.sh index cb28c53..953775a 100755 --- a/lib/gentagtbl.sh +++ b/lib/gentagtbl.sh @@ -67,7 +67,7 @@ ${AWK} '/[\t ](RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ && !/unimplemente tn = substr(tnarg, index(tnarg, "_") + 1) sn = (substr(tn, 1, 1) tolower(substr(tn, 2))) if ($2 == "=") { - printf(" { \"%s\", \"%s\", %s RPM_%s_TYPE + RPM_%s_RETURN_TYPE, %d },\n", tnarg, sn, $3, tt, ta, ext) + printf(" { \"%s\", \"%s\", %s, RPM_%s_TYPE + RPM_%s_RETURN_TYPE, %d },\n", tnarg, sn, tnarg, tt, ta, ext) } else { printf(" { \"%s\", \"%s\", %s, RPM_%s_TYPE + RPM_%s_RETURN_TYPE, %d },\n", tnarg, sn, $3, tt, ta, ext) } -- 2.7.4