Commit 90670e1b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix typo when generating a shared library

parent ee7e5222
...@@ -332,8 +332,8 @@ package {process_name} is'''.format(process_name=process_name, ...@@ -332,8 +332,8 @@ package {process_name} is'''.format(process_name=process_name,
param_spec = '' param_spec = ''
if 'type' in signal: if 'type' in signal:
typename = type_name(signal['type']) typename = type_name(signal['type'])
param_spec = u'({pName}: access {sort})'.format(pName=param_name, param_spec = u'({pName}: access {sort}; Size: Integer)' \
sort=typename) .format(pName=param_name, sort=typename)
ads_template.append(u'-- Required interface "' + signal['name'] + '"') ads_template.append(u'-- Required interface "' + signal['name'] + '"')
if simu: if simu:
# When generating a shared library, we need a callback mechanism # When generating a shared library, we need a callback mechanism
...@@ -341,7 +341,7 @@ package {process_name} is'''.format(process_name=process_name, ...@@ -341,7 +341,7 @@ package {process_name} is'''.format(process_name=process_name,
.format(signal['name'], param_spec)) .format(signal['name'], param_spec))
ads_template.append('pragma Convention(Convention => C,' ads_template.append('pragma Convention(Convention => C,'
' Entity => {}_T);'.format(signal['name'])) ' Entity => {}_T);'.format(signal['name']))
ads_template.append('{sig} : {sig}_T; size: Integer' ads_template.append('{sig} : {sig}_T;'
.format(sig=signal['name'])) .format(sig=signal['name']))
ads_template.append('procedure Register_{sig}(Callback: {sig}_T);' ads_template.append('procedure Register_{sig}(Callback: {sig}_T);'
.format(sig=signal['name'])) .format(sig=signal['name']))
......
...@@ -9,5 +9,5 @@ cd simu ...@@ -9,5 +9,5 @@ cd simu
aadl2glueC.py DataView.aadl orchestrator_interface.aadl aadl2glueC.py DataView.aadl orchestrator_interface.aadl
asn2dataModel.py -toPython dataview-uniq.asn asn2dataModel.py -toPython dataview-uniq.asn
make -f Makefile.python make -f Makefile.python
echo "errCodes=$(python $(taste-config --prefix)/share/asn1-editor/errCode.py ./dataview-uniq.h)" >>datamodel.py echo "errCodes=$(taste-asn1-errCodes ./dataview-uniq.h)" >>datamodel.py
LD_LIBRARY_PATH=. taste_gui -l LD_LIBRARY_PATH=. taste-gui -l
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment