Skip to content

Commit

Permalink
- SimCode/SimCodeC.tpl
Browse files Browse the repository at this point in the history
  - use "int" for enumeration type for external functions

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5846 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jul 12, 2010
1 parent 61836d2 commit 2ad8b3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/SimCodeC.mo
Expand Up @@ -9217,6 +9217,12 @@ algorithm
txt = Tpl.writeTok(txt, Tpl.ST_STRING("void*"));
then txt;

case ( txt,
DAE.ET_ENUMERATION(index = _) )
equation
txt = Tpl.writeTok(txt, Tpl.ST_STRING("int"));
then txt;

case ( txt,
_ )
equation
Expand Down
1 change: 1 addition & 0 deletions Compiler/susan_codegen/SimCode/SimCodeC.tpl
Expand Up @@ -2133,6 +2133,7 @@ template extType(ExpType type)
case ET_POLYMORPHIC(__)
case ET_META_ARRAY(__)
case ET_BOXED(__) then "void*"
case ET_ENUMERATION(__) then "int"
else "OTHER_EXT_TYPE"
end extType;

Expand Down

0 comments on commit 2ad8b3a

Please sign in to comment.