From a79cd5b95598d6757a660e587afc61d34229e25f Mon Sep 17 00:00:00 2001 From: Tomas Kukosa Date: Wed, 5 Jan 2005 07:09:06 +0000 Subject: [PATCH] Fixed value string names in field array when NO_PROT_PREFIX option is used svn path=/trunk/; revision=12949 --- tools/asn2eth.py | 4 ++-- 1 file 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):