forked from OpenModelica/OMLibraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelicaServices 3.2.3.patch
40 lines (37 loc) · 1.96 KB
/
ModelicaServices 3.2.3.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff -u -w -x .svn -x .git -x Library -r git/Modelica/ModelicaServices/package.mo "build/ModelicaServices 3.2.3/package.mo"
--- git/Modelica/ModelicaServices/package.mo 2020-03-18 19:04:48.552974869 +0100
+++ build/ModelicaServices 3.2.3/package.mo 2020-03-18 19:05:17.285263488 +0100
@@ -1,7 +1,7 @@
within ;
-package ModelicaServices "ModelicaServices (Default implementation) - Models and functions used in the Modelica Standard Library requiring a tool specific implementation"
+package ModelicaServices "ModelicaServices (OpenModelica implementation) - Models and functions used in the Modelica Standard Library requiring a tool specific implementation"
extends Modelica.Icons.Package;
- constant String target="Default"
+ constant String target= "OpenModelica"
"Target of this ModelicaServices implementation";
package UsersGuide "User's Guide"
@@ -144,14 +144,15 @@
extends
Modelica.Utilities.Internal.PartialModelicaServices.ExternalReferences.PartialLoadResource;
algorithm
- fileReference := Modelica.Utilities.Files.fullPathName(uri);
+ fileReference:=OpenModelica.Scripting.uriToFilename(uri);
annotation (Documentation(info="<html>
<p>
The interface of this model is documented at
<a href=\"modelica://Modelica.Utilities.Files.loadResource\">Modelica.Utilities.Files.loadResource</a>.
</p>
-</html>"));
+</html>"),
+ __OpenModelica_EarlyInline = true);
end loadResource;
end ExternalReferences;
@@ -162,7 +163,7 @@
"Smallest number such that small and -small are representable on the machine";
final constant Real inf=1e60
"Biggest Real number such that inf and -inf are representable on the machine";
- final constant Integer Integer_inf=2147483647
+ final constant Integer Integer_inf=OpenModelica.Internal.Architecture.integerMax()
"Biggest Integer number such that Integer_inf and -Integer_inf are representable on the machine";
annotation (Documentation(info="<html>
<p>