Skip to content

Commit ff11ff6

Browse files
author
Anders Sandholm
committed
fix string support in external functions
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2667 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent c2e2576 commit ff11ff6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Compiler/Codegen.mo

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5750,14 +5750,14 @@ algorithm
57505750
res = stringAppend(name, ".data");
57515751
then
57525752
res;
5753-
// case arg /* INPUT/OUTPUT STRING */
5754-
// equation
5755-
// DAE.EXTARG(componentRef = cref,attributes = attr,type_ = ty) = arg;
5756-
// true = Types.isString(ty);
5757-
// (name,_) = compRefCstr(cref);
5758-
// res = stringAppend(name, ".data");
5759-
// then
5760-
// res;
5753+
case arg /* INPUT/OUTPUT STRING */
5754+
equation
5755+
DAE.EXTARG(componentRef = cref,attributes = attr,type_ = ty) = arg;
5756+
true = Types.isString(ty);
5757+
(res,_) = compRefCstr(cref);
5758+
print("\n true = Types.isString(ty); \n");
5759+
then
5760+
res;
57615761
case arg /* INPUT/OUTPUT NON-ARRAY */
57625762
equation
57635763
DAE.EXTARG(componentRef = cref,attributes = attr,type_ = ty) = arg;

0 commit comments

Comments
 (0)