aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-01-20 11:56:33 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-01-20 11:56:33 +0000
commit1d2249b2c532c125eb61be9a4fe5d6e41e5fe688 (patch)
tree4c9794ac2e758dc5132c7993b968b30671d3d39f /tools
parentd5159a4b0e67e3d8d9cb4f5facc2561c3e350657 (diff)
Fix bug in SEQUENCE/SET OF handling
svn path=/trunk/; revision=13137
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index cb405d38dc..980e491dd8 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -1970,10 +1970,12 @@ class SequenceOfType (SqType):
self.val.eth_reg(itmnm, ectx, idx='[##]', parent=ident)
def eth_tname(self):
+ if self.val.type != 'Type_Ref':
+ return '#' + self.type + '_' + str(id(self))
if not self.HasConstraint():
- return "SEQUNCE_OF_" + self.val.eth_tname()
+ return "SEQUENCE_OF_" + self.val.eth_tname()
elif self.constr.IsSize():
- return 'SEQUNCE_' + self.constr.eth_constrname() + '_OF_' + self.val.eth_tname()
+ return 'SEQUENCE_' + self.constr.eth_constrname() + '_OF_' + self.val.eth_tname()
else:
return '#' + self.type + '_' + str(id(self))
@@ -2045,6 +2047,8 @@ class SetOfType (SqType):
self.val.eth_reg(itmnm, ectx, idx='(##)', parent=ident)
def eth_tname(self):
+ if self.val.type != 'Type_Ref':
+ return '#' + self.type + '_' + str(id(self))
if not self.HasConstraint():
return "SET_OF_" + self.val.eth_tname()
elif self.constr.IsSize():