aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-01-05 07:09:06 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-01-05 07:09:06 +0000
commita79cd5b95598d6757a660e587afc61d34229e25f (patch)
treef0bf434988b98ef3c2852a0bcc316001164bcd9c /tools
parentadcb6ff460e99379da133a7eb3ffce43348c0cce (diff)
Fixed value string names in field array when NO_PROT_PREFIX option is used
svn path=/trunk/; revision=12949
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index 79c0f9d9eb..381bb765d5 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -555,14 +555,14 @@ class EthCtx:
'attr' : {},
'ref' : [t]}
self.eth_type[nm]['attr'].update(self.conform.use_item('ETYPE_ATTR', nm))
- if self.type[t]['attr'].get('STRINGS') == '$$':
- self.eth_type[nm]['attr']['STRINGS'] = 'VALS(%s)' % (self.eth_vals_nm(nm))
self.type[t]['ethname'] = nm
if (not self.eth_type[nm]['export'] and self.type[t]['export']): # new export
self.eth_export_ord.append(nm)
self.eth_type[nm]['export'] |= self.type[t]['export']
self.eth_type[nm]['user_def'] &= self.type[t]['user_def']
self.eth_type[nm]['no_emit'] &= self.type[t]['no_emit']
+ if self.type[t]['attr'].get('STRINGS') == '$$':
+ self.eth_type[nm]['attr']['STRINGS'] = 'VALS(%s)' % (self.eth_vals_nm(nm))
for t in self.eth_type_ord:
bits = self.eth_type[t]['val'].eth_named_bits()
if (bits):