Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21107 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Jun 13, 2014
1 parent af660ef commit b6f65b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -7704,10 +7704,10 @@ case CAST(__) then
let from = expTypeFromExpShort(exp)
let &preExp += 'cast_<%from%>_array_to_<%to%>(&<%expVar%>, &<%tvar%>);<%\n%>' /*test2*/
'<%tvar%>'

//'(*((<%underscorePath(rec.path)%>*)&<%expVar%>))'
case T_COMPLEX(varLst=vl,complexClassType=rec as RECORD(__)) then
case T_COMPLEX(varLst=vl,complexClassType=rec as RECORD(__)) then

let tvar = tempDecl(underscorePath(rec.path)+"Type", &varDecls /*BUFD*/)
let &preExp += '<%structParams(expVar,tvar,vl)%><%\n%>' /*test2*/
'<%tvar%>'
Expand All @@ -7718,8 +7718,8 @@ end daeExpCast;

template structParams(String structName,String varName,list<Var> exps)
::=
let params = (exps |> e => match e
case TYPES_VAR(__) then
let params = (exps |> e => match e
case TYPES_VAR(__) then
'<%varName%>.<%name%>=<%structName%>.<%name%>;'
;separator="\n" )
params
Expand Down

0 comments on commit b6f65b9

Please sign in to comment.