Fixed value string names in field array when NO_PROT_PREFIX option is used

svn path=/trunk/; revision=12949
This commit is contained in:
Tomas Kukosa 2005-01-05 07:09:06 +00:00
parent adcb6ff460
commit a79cd5b955
1 changed files with 2 additions and 2 deletions

View File

@ -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):