Skip to content

Commit

Permalink
- fix typo in CodegenC.tpl
Browse files Browse the repository at this point in the history
- use CodegenC instead of old SimCodeC in SimCodeDump.tpl
- fix some of the deps.

TODO:
- only SimCodeQss.tpl still uses SimCodeC and I plan to fix that and get rid of SimCodeC and c_runtime.
- maybe all SimCode* should be renamed to Codegen*


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11167 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 22, 2012
1 parent 9104bf8 commit 25a986f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Compiler/susan_codegen/SimCode/CodegenC.tpl
Expand Up @@ -219,7 +219,7 @@ case SIMCODE(modelInfo=MODELINFO(__), extObjInfo=EXTOBJINFO(__)) then
>>
end simulationFileHeader;

template pupulateModelInfo(ModelInfo modelInfo, String fileNamePrefix, String guid, list<SimEqSystem> allEquations, DelayedExpression delayed)
template populateModelInfo(ModelInfo modelInfo, String fileNamePrefix, String guid, list<SimEqSystem> allEquations, DelayedExpression delayed)
"Generates information for data.modelInfo struct."
::=
match modelInfo
Expand Down Expand Up @@ -260,7 +260,7 @@ case MODELINFO(varInfo=VARINFO(__)) then
data->modelData.nDelayExpressions = <%match delayed case DELAYED_EXPRESSIONS(__) then maxDelayedIndex%>;

>>
end pupulateModelInfo;
end populateModelInfo;

template functionInitializeDataStruc(ModelInfo modelInfo, String fileNamePrefix, String guid, list<SimEqSystem> allEquations, DelayedExpression delayed)
"Generates function in simulation file."
Expand All @@ -269,7 +269,7 @@ template functionInitializeDataStruc(ModelInfo modelInfo, String fileNamePrefix,
void setupDataStruc(DATA *data)
{
ASSERT(data,"Error while initialize Data");
<%pupulateModelInfo(modelInfo, fileNamePrefix, guid, allEquations, delayed)%>
<%populateModelInfo(modelInfo, fileNamePrefix, guid, allEquations, delayed)%>
}
>>
end functionInitializeDataStruc;
Expand Down
6 changes: 3 additions & 3 deletions Compiler/susan_codegen/SimCode/Makefile
Expand Up @@ -28,7 +28,7 @@ SimCodeCSharp.mo : SimCodeCSharp.tpl SimCodeTV.mo
cp -pf $@ ../../Template/
@echo " "

SimCodeFMU.mo : SimCodeFMU.tpl SimCodeTV.mo CodegenC.tpl
SimCodeFMU.mo : SimCodeFMU.tpl SimCodeTV.mo SimCodeC.tpl
@echo " ** SimCodeFMU template compilation ** "
$(OMC) $< > $@.log || (cat $@.log && false)
cp -pf $@ ../../Template/
Expand All @@ -46,13 +46,13 @@ Unparsing.mo : Unparsing.tpl SimCodeTV.mo
cp -pf $@ ../../Template/
@echo " "

SimCodeDump.mo : SimCodeDump.tpl SimCodeTV.mo
SimCodeDump.mo : SimCodeDump.tpl SimCodeTV.mo CodegenC.tpl
@echo " ** SimCodeDump template compilation ** "
$(OMC) $< > $@.log || (cat $@.log && false)
cp -pf $@ ../../Template/
@echo " "

SimCodeQSS.mo : SimCodeQSS.tpl SimCodeTV.mo CodegenC.tpl
SimCodeQSS.mo : SimCodeQSS.tpl SimCodeTV.mo SimCodeC.tpl
@echo " ** SimCodeQSS template compilation ** "
$(OMC) $< > $@.log || (cat $@.log && false)
cp -pf $@ ../../Template/
Expand Down
2 changes: 1 addition & 1 deletion Compiler/susan_codegen/SimCode/SimCodeDump.tpl
@@ -1,7 +1,7 @@
package SimCodeDump

import interface SimCodeTV;
import SimCodeC.*;
import CodegenC.*;

template dumpSimCode(SimCode code)
::=
Expand Down

0 comments on commit 25a986f

Please sign in to comment.