Skip to content

Commit

Permalink
"StateSelect =" to "stateSelect ="
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15164 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 13, 2013
1 parent 1275dc4 commit ffb5c5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Compiler/BackEnd/SimCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,9 @@ protected function elaborateFunctions2
output list<String> outLibs;
algorithm
(outFunctions, outRecordTypes, outDecls, outIncludes, outIncludeDirs, outLibs) :=
matchcontinue (program, daeElements, inFunctions, inRecordTypes, inDecls, inIncludes, inIncludeDirs, inLibs)
match (program, daeElements, inFunctions, inRecordTypes, inDecls, inIncludes, inIncludeDirs, inLibs)
local
Boolean b;
list<SimCode.Function> accfns, fns;
SimCode.Function fn;
list<String> rt, rt_1, rt_2, includes, libs;
Expand Down Expand Up @@ -641,11 +642,12 @@ algorithm
then
(fns, rt_2, decls, includes, includeDirs, libs);

case (_, DAE.FUNCTION(functions = DAE.FUNCTION_EXT(externalDecl = DAE.EXTERNALDECL(name=name, language="C"))::_)::rest, accfns, rt, decls, includes, includeDirs, libs)
case (_, (fel as DAE.FUNCTION(functions = DAE.FUNCTION_EXT(externalDecl = DAE.EXTERNALDECL(name=name, language="C"))::_))::rest, accfns, rt, decls, includes, includeDirs, libs)
equation
// skip over builtin functions
true = listMember(name, SCode.knownExternalCFunctions);
(fns, rt_2, decls, includes, includeDirs, libs) = elaborateFunctions2(program, rest, accfns, rt, decls, includes, includeDirs, libs);
b = listMember(name, SCode.knownExternalCFunctions);
(fn, rt_1, decls, includes, includeDirs, libs) = elaborateFunction(program, fel, rt, decls, includes, includeDirs, libs);
(fns, rt_2, decls, includes, includeDirs, libs) = elaborateFunctions2(program, rest, List.consOnTrue(not b, fn, accfns), rt, decls, includes, includeDirs, libs);
then
(fns, rt_2, decls, includes, includeDirs, libs);

Expand All @@ -655,7 +657,7 @@ algorithm
(fns, rt_2, decls, includes, includeDirs, libs) = elaborateFunctions2(program, rest, (fn :: accfns), rt_1, decls, includes, includeDirs, libs);
then
(fns, rt_2, decls, includes, includeDirs, libs);
end matchcontinue;
end match;
end elaborateFunctions2;

/* Does the actual work of transforming a DAE.FUNCTION to a SimCode.Function. */
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/DAEDump.mo
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ algorithm
quantity = Dump.getOptionWithConcatStr(quant, ExpressionDump.printExpStr, "quantity = ");
unit_str = Dump.getOptionWithConcatStr(unit, ExpressionDump.printExpStr, "unit = ");
displayUnit_str = Dump.getOptionWithConcatStr(displayUnit, ExpressionDump.printExpStr, "displayUnit = ");
stateSel_str = Dump.getOptionWithConcatStr(stateSel, dumpStateSelectStr , "StateSelect = ");
stateSel_str = Dump.getOptionWithConcatStr(stateSel, dumpStateSelectStr , "stateSelect = ");
min_str = Dump.getOptionWithConcatStr(min, ExpressionDump.printExpStr, "min = ");
max_str = Dump.getOptionWithConcatStr(max, ExpressionDump.printExpStr, "max = ");
nominal_str = Dump.getOptionWithConcatStr(nominal, ExpressionDump.printExpStr, "nominal = ");
Expand Down

0 comments on commit ffb5c5d

Please sign in to comment.