From 14c933bedb1870e2da3c769305835564d4ba10c0 Mon Sep 17 00:00:00 2001 From: rkebichi <54912798+rkebichi@users.noreply.github.com> Date: Wed, 9 Oct 2019 15:28:59 -0400 Subject: [PATCH] Update genOstreamOps.py --- script/genOstreamOps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/genOstreamOps.py b/script/genOstreamOps.py index b4effcab28..ea0fbacb95 100644 --- a/script/genOstreamOps.py +++ b/script/genOstreamOps.py @@ -98,7 +98,7 @@ FOOTER = \ rx_dict = { 'struct_name': re.compile(r'typedef (?P.*)\n'), - 'field_type': re.compile(r'\s+name\[raw_type\]=(?P.*)\n'), + 'field_type': re.compile(r'\s+name\[type\]=(?P.*)\n'), 'field_name': re.compile(r'\s+name\[name\]=(?P.*)\n'), 'array_size_val': re.compile(r'\s+name\[array_size\]=(?P.*)\n'), } @@ -151,7 +151,7 @@ def parse_file(infilepath,outfilepath): tmp_str=tmp_str.replace(field_type,field_type+"["+array_size_val+"]") f.write(tmp_str+"\n") tmp_str="" - if flag==1 and key == 'field_name': + if flag==1 and key == 'field_name' and "union" not in field_type: if tmp_str!="": f.write(tmp_str+"\n") tmp_str=""