From 4d9344f1025ee77e24e88249dd3e32f3d4c9a3ba Mon Sep 17 00:00:00 2001 From: CamVan Nguyen Date: Thu, 10 Nov 2011 13:22:16 -0600 Subject: Added initfile compiler support for attribute enums Change-Id: I78a2a85831b545e7213e08a272fec482bd69cdf1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/493 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES Reviewed-by: Andrew J. Geissler Reviewed-by: A. Patrick Williams III --- src/usr/hwpf/fapi/fapiParseAttributeInfo.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/usr/hwpf/fapi/fapiParseAttributeInfo.pl') diff --git a/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl b/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl index 2d7051b5e..333e68440 100755 --- a/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl +++ b/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl @@ -45,6 +45,8 @@ # mjjones 10/18/11 Support multiple attr files and # multi-line descriptions # camvanng 10/20/11 Changed i_pTarget to "const" ptr +# camvanng 11/09/11 Prepend "ENUM_" to attribute +# enums # # End Change Log ****************************************************** @@ -266,7 +268,7 @@ foreach my $argnum (1 .. $#ARGV) { # Remove leading spaces $val =~ s/^\s+//; - print AIFILE " $attr->{id}_${val},\n"; + print AIFILE " ENUM_$attr->{id}_${val},\n"; } print AIFILE "};\n"; -- cgit v1.2.1