Skip to content

Commit

Permalink
- fixed a small bug with the check for DynamicSelect/OnMouse* in anno…
Browse files Browse the repository at this point in the history
…tations.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7060 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 17, 2010
1 parent 421a1d7 commit 0e522bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/Absyn.mo
Expand Up @@ -4507,10 +4507,9 @@ algorithm
equation
b1 = stringEq(name, "DynamicSelect");
b2 = (0 == System.strncmp("OnMouse", name, 7));
b = boolOr(b1, b2);
b = boolNot(b);
true = boolOr(b1, b2);
then
b;
false;

// search inside, some(exp)
case (MODIFICATION(modification = SOME(CLASSMOD(dive, expOpt))) :: rest)
Expand Down
6 changes: 6 additions & 0 deletions Compiler/Interactive.mo
Expand Up @@ -14412,6 +14412,9 @@ algorithm
Connect.emptySet, placementclass, {}, false, Inst.TOP_CALL(), ConnectionGraph.EMPTY);

str = DAEUtil.getVariableBindingsStr(DAEUtil.daeElements(dae));

// print("Env: " +& Env.printEnvStr(env) +& "\n");

(_,graphicexp2,prop) = Static.elabGraphicsExp(cache, env, graphicexp, false, Prefix.NOPRE(), Absyn.dummyInfo); // TODO: FIXME: Someone forgot to add Absyn.Info to this function's input
(cache, graphicexp2, prop) = Ceval.cevalIfConstant(cache, env, graphicexp2, prop, false);
Print.clearErrorBuf() "this is to clear the error-msg generated by the annotations." ;
Expand Down Expand Up @@ -14470,6 +14473,9 @@ algorithm
UnitAbsyn.noStore, mod_2, Prefix.NOPRE(), Connect.emptySet,
placementclass, {}, false, Inst.TOP_CALL(), ConnectionGraph.EMPTY);
str = DAEUtil.getVariableBindingsStr(DAEUtil.daeElements(dae));

// print("Env: " +& Env.printEnvStr(env) +& "\n");

(_,graphicexp2,prop) = Static.elabGraphicsExp(cache, env, graphicexp, false,Prefix.NOPRE(), Absyn.dummyInfo); // TODO: FIXME: Someone forgot to add Absyn.Info to this function's input
Print.clearErrorBuf() "this is to clear the error-msg generated by the annotations." ;
gexpstr = ExpressionDump.printExpStr(graphicexp2);
Expand Down

0 comments on commit 0e522bb

Please sign in to comment.