Skip to content

Commit

Permalink
- moved all c_runtime/meta_* files to c_runtime/meta/ (also rml_compa…
Browse files Browse the repository at this point in the history
…tibility.h)

- changed all the required makefiles in Compiler/runtime/ and Parser/
- added SCodeFlatDump.mo.
- implemented a first phase in SCodeFlat.mo.



git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9098 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed May 25, 2011
1 parent ae268a2 commit e443e0c
Show file tree
Hide file tree
Showing 37 changed files with 902 additions and 60 deletions.
9 changes: 3 additions & 6 deletions Compiler/FrontEnd/Dump.mo
Expand Up @@ -2269,15 +2269,12 @@ algorithm
end match;
end unparseComponentitemStr;

protected function unparseComponentCondition "function: unparseComponentCondition

Prints a ComponentCondition option to a string.
"
public function unparseComponentCondition "function: unparseComponentCondition
Prints a ComponentCondition option to a string."
input Option<Absyn.ComponentCondition> inAbsynComponentConditionOption;
output String outString;
algorithm
outString:=
match (inAbsynComponentConditionOption)
outString := match (inAbsynComponentConditionOption)
local
Ident s1,res;
Absyn.Exp cond;
Expand Down
10 changes: 10 additions & 0 deletions Compiler/FrontEnd/SCodeDump.mo
Expand Up @@ -915,6 +915,16 @@ algorithm
end match;
end encapsulatedStr;

public function partialStr
input SCode.Partial inPartial;
output String str;
algorithm
str := match(inPartial)
case (SCode.PARTIAL()) then "partial ";
case (SCode.NOT_PARTIAL()) then "";
end match;
end partialStr;

public function visibilityStr
input SCode.Visibility inVisibility;
output String str;
Expand Down

0 comments on commit e443e0c

Please sign in to comment.