Skip to content

Commit

Permalink
Changed C# template to reflect string-to-Path data structure change.
Browse files Browse the repository at this point in the history
It didn't compile before this fix. I don't know if underscorePath is the
correct replacement, but at least it compiles now.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4902 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Rickard Lindberg committed Feb 2, 2010
1 parent 6bd879f commit da1f066
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Compiler/SimCodeCSharp.mo
Expand Up @@ -5289,7 +5289,7 @@ algorithm
Absyn.Path i_name;
equation
txt = Tpl.writeTok(txt, Tpl.ST_STRING("/*struct*/"));
txt = Tpl.writeStr(txt, Absyn.pathString(i_name));
txt = underscorePath(txt, i_name);
then txt;

case ( txt,
Expand Down
4 changes: 2 additions & 2 deletions Compiler/susan_codegen/SimCode/SimCodeCSharp.mo
Expand Up @@ -5286,10 +5286,10 @@ algorithm
case ( txt,
DAE.ET_COMPLEX(name = i_name) )
local
String i_name;
Absyn.Path i_name;
equation
txt = Tpl.writeTok(txt, Tpl.ST_STRING("/*struct*/"));
txt = Tpl.writeStr(txt, i_name);
txt = underscorePath(txt, i_name);
then txt;

case ( txt,
Expand Down
2 changes: 1 addition & 1 deletion Compiler/susan_codegen/SimCode/SimCodeCSharp.tpl
Expand Up @@ -915,7 +915,7 @@ expShortType(DAE.ExpType) ::=
case ET_BOOL then "bool"
case ET_OTHER then "#complex#"
case ET_ARRAY then expShortType(ty)
case ET_COMPLEX then '/*struct*/<name>'
case ET_COMPLEX then '/*struct*/<underscorePath(name)>'

expTypeArray(DAE.ExpType ty) ::=
<<
Expand Down
4 changes: 2 additions & 2 deletions Compiler/susan_codegen/SimCode/SimCodeTV.mo
Expand Up @@ -352,7 +352,7 @@ package DAE
list<ExpVar> varLst;
end ET_ENUMERATION;
record ET_COMPLEX
String name;
Absyn.Path name;
list<ExpVar> varLst;
ClassInf.State complexClassType;
end ET_COMPLEX;
Expand Down Expand Up @@ -789,7 +789,7 @@ package ClassInf
String string;
end TYPE_ENUM;
record EXTERNAL_OBJ
Absyn.Path fullClassName;
Absyn.Path path;
end EXTERNAL_OBJ;
end State;

Expand Down

0 comments on commit da1f066

Please sign in to comment.