summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/xmltohb/xmltohb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/targeting/common/xmltohb/xmltohb.pl')
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/xmltohb.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl
index 34f03b36a..18de6c34e 100755
--- a/src/usr/targeting/common/xmltohb/xmltohb.pl
+++ b/src/usr/targeting/common/xmltohb/xmltohb.pl
@@ -877,7 +877,12 @@ sub writeFapi2PlatAttrMacrosHeaderFileContent {
$fapiWriteable = 1;
}
- if(!exists $attribute->{simpleType}->{enumeration})
+ if(exists $attribute->{simpleType}->{enumeration})
+ {
+ die "Do not use enumerations for FAPI types! ".
+ $attribute->{id}."\n";
+ }
+ else
{
$typeSection .= " static_assert(sizeof(TARGETING::ATTR_". $attribute->{id}."_type) ==
sizeof(fapi2::". $fapiAttr->{id}."_Type), \"Size of attribute ATTR_". $attribute->{id}."_type is not equal to the size of ".
@@ -4349,8 +4354,8 @@ sub enumNameToValue {
print STDOUT $enumeration;
- fatal("dc99> Could not convert enumerator name \"$enumeratorName\"into "
- . "enumerator value in \"$enumerationName\". enum="); #dc99
+ fatal("Could not convert enumerator name \"$enumeratorName\"into "
+ . "enumerator value in \"$enumerationName\". enum=");
}
if($enumeratorValue < 0)
OpenPOWER on IntegriCloud