- Timestamp:
- 02/07/08 21:11:19 (8 months ago)
- Location:
- trunk/Modelica
- Files:
-
- 8 modified
-
Blocks/Sources.mo (modified) (6 diffs)
-
Blocks/Tables.mo (modified) (6 diffs)
-
Math/package.mo (modified) (13 diffs)
-
Utilities/Files.mo (modified) (2 diffs)
-
Utilities/Streams.mo (modified) (5 diffs)
-
Utilities/Strings.mo (modified) (8 diffs)
-
Utilities/System.mo (modified) (6 diffs)
-
Utilities/package.mo (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modelica/Blocks/Sources.mo
r1013 r1041 1 1 within Modelica.Blocks; 2 2 3 3 4 package Sources … … 2532 2533 "Maximum abscissa value defined in table"; 2533 2534 2534 2535 2535 annotation ( 2536 2536 Documentation(info="<HTML> … … 2798 2798 tableName, fileName, table, size(table, 1), size(table, 2), 2799 2799 startTime, smoothness, extrapolation); 2800 annotation(Library="ModelicaExternalC"); 2800 2801 end tableTimeInit; 2801 2802 … … 2807 2808 external "C" value = 2808 2809 ModelicaTables_CombiTimeTable_interpolate(tableID, icol, timeIn); 2810 annotation(Library="ModelicaExternalC"); 2809 2811 end tableTimeIpo; 2810 2812 … … 2814 2816 external "C" Tmin = 2815 2817 ModelicaTables_CombiTimeTable_minimumTime(tableID); 2818 annotation(Library="ModelicaExternalC"); 2816 2819 end tableTimeTmin; 2817 2820 … … 2821 2824 external "C" Tmax = 2822 2825 ModelicaTables_CombiTimeTable_maximumTime(tableID); 2826 annotation(Library="ModelicaExternalC"); 2823 2827 end tableTimeTmax; 2824 2828 -
trunk/Modelica/Blocks/Tables.mo
r1013 r1041 220 220 tableName, fileName, table, size(table, 1), size(table, 2), 221 221 smoothness); 222 annotation(Library="ModelicaExternalC"); 222 223 end tableInit; 223 224 … … 229 230 external "C" value = 230 231 ModelicaTables_CombiTable1D_interpolate(tableID, icol, u); 232 annotation(Library="ModelicaExternalC"); 231 233 end tableIpo; 232 234 equation … … 464 466 tableName, fileName, table, size(table, 1), size(table, 2), 465 467 smoothness); 468 annotation(Library="ModelicaExternalC"); 466 469 end tableInit; 467 470 … … 473 476 external "C" value = 474 477 ModelicaTables_CombiTable1D_interpolate(tableID, icol, u); 478 annotation(Library="ModelicaExternalC"); 475 479 end tableIpo; 476 480 … … 732 736 tableName, fileName, table, size(table, 1), size(table, 2), 733 737 smoothness); 738 annotation(Library="ModelicaExternalC"); 734 739 end tableInit; 735 740 … … 741 746 external "C" value = 742 747 ModelicaTables_CombiTable2D_interpolate(tableID, u1, u2); 748 annotation(Library="ModelicaExternalC"); 743 749 end tableIpo; 744 750 -
trunk/Modelica/Math/package.mo
r1008 r1041 4006 4006 </html>")); 4007 4007 external "C" y = sin(u); 4008 annotation(Library="ModelicaExternalC"); 4008 4009 end sin; 4009 4010 … … 4089 4090 </html>")); 4090 4091 external "C" y = cos(u); 4092 annotation(Library="ModelicaExternalC"); 4091 4093 end cos; 4092 4094 … … 4175 4177 </html>")); 4176 4178 external "C" y = tan(u); 4179 annotation(Library="ModelicaExternalC"); 4177 4180 end tan; 4178 4181 … … 4262 4265 </html>")); 4263 4266 external "C" y = asin(u); 4267 annotation(Library="ModelicaExternalC"); 4264 4268 end asin; 4265 4269 … … 4345 4349 </html>")); 4346 4350 external "C" y = acos(u); 4351 annotation(Library="ModelicaExternalC"); 4347 4352 end acos; 4348 4353 … … 4422 4427 </html>")); 4423 4428 external "C" y = atan(u); 4429 annotation(Library="ModelicaExternalC"); 4424 4430 end atan; 4425 4431 … … 4530 4536 ")); 4531 4537 external "C" y = atan2(u1, u2); 4538 annotation(Library="ModelicaExternalC"); 4532 4539 end atan2; 4533 4540 … … 4731 4738 </html>")); 4732 4739 external "C" y = sinh(u); 4740 annotation(Library="ModelicaExternalC"); 4733 4741 end sinh; 4734 4742 … … 4820 4828 </html>")); 4821 4829 external "C" y = cosh(u); 4830 annotation(Library="ModelicaExternalC"); 4822 4831 end cosh; 4823 4832 … … 4897 4906 </html>")); 4898 4907 external "C" y = tanh(u); 4908 annotation(Library="ModelicaExternalC"); 4899 4909 end tanh; 4900 4910 … … 5178 5188 </html>")); 5179 5189 external "C" y = exp(u); 5190 annotation(Library="ModelicaExternalC"); 5180 5191 end exp; 5181 5192 … … 5268 5279 5269 5280 external "C" y = log(u); 5281 annotation(Library="ModelicaExternalC"); 5270 5282 end log; 5271 5283 … … 5358 5370 5359 5371 external "C" y = log10(u); 5372 annotation(Library="ModelicaExternalC"); 5360 5373 end log10; 5361 5374 -
trunk/Modelica/Utilities/Files.mo
r940 r1041 602 602 output String fullName "Full path of 'name'"; 603 603 external "C" fullName = ModelicaInternal_fullPathName(name); 604 annotation ( Documentation(info="<html>604 annotation (Library="ModelicaExternalC",Documentation(info="<html> 605 605 <h4>Syntax</h4> 606 606 <blockquote><pre> … … 690 690 output String fileName "Full path name of temporary file"; 691 691 external "C" fileName=ModelicaInternal_temporaryFileName(0); 692 annotation ( Documentation(info="<html>692 annotation (Library="ModelicaExternalC",Documentation(info="<html> 693 693 <h4>Syntax</h4> 694 694 <blockquote><pre> -
trunk/Modelica/Utilities/Streams.mo
r887 r1041 79 79 caption="Text file to store the output of print(..)"))); 80 80 external "C" ModelicaInternal_print(string, fileName); 81 annotation ( 81 annotation (Library="ModelicaExternalC", 82 82 Documentation(info="<HTML> 83 83 <h4>Syntax</h4> … … 151 151 "If true, end-of-file was reached when trying to read line"; 152 152 external "C" string= ModelicaInternal_readLine(fileName,lineNumber,endOfFile); 153 annotation ( Documentation(info="<html>153 annotation (Library="ModelicaExternalC",Documentation(info="<html> 154 154 <h4>Syntax</h4> 155 155 <blockquote><pre> … … 179 179 output Integer numberOfLines "Number of lines in file"; 180 180 external "C" numberOfLines= ModelicaInternal_countLines(fileName); 181 annotation ( Documentation(info="<html>181 annotation (Library="ModelicaExternalC",Documentation(info="<html> 182 182 <h4>Syntax</h4> 183 183 <blockquote><pre> … … 197 197 input String string "String to be printed to error message window"; 198 198 external "C" ModelicaError(string); 199 annotation ( 199 annotation (Library="ModelicaExternalC", 200 200 Documentation(info="<html> 201 201 <h4>Syntax</h4> … … 228 228 caption="Close text file"))); 229 229 external "C" ModelicaStreams_closeFile(fileName); 230 annotation ( Documentation(info="<html>230 annotation (Library="ModelicaExternalC",Documentation(info="<html> 231 231 <h4>Syntax</h4> 232 232 <blockquote><pre> -
trunk/Modelica/Utilities/Strings.mo
r887 r1041 6 6 output Integer result "Number of characters of string"; 7 7 external "C" result= ModelicaStrings_length(string); 8 annotation ( Documentation(info="<html>8 annotation (Library="ModelicaExternalC", Documentation(info="<html> 9 9 <h4>Syntax</h4> 10 10 <blockquote><pre> … … 29 29 external "C" result = 30 30 ModelicaStrings_substring(string,startIndex,endIndex); 31 annotation ( 31 annotation (Library="ModelicaExternalC", 32 32 Documentation(info="<html> 33 33 <h4>Syntax</h4> … … 88 88 output Modelica.Utilities.Types.Compare result "Result of comparison"; 89 89 external "C" result= ModelicaStrings_compare(string1, string2, caseSensitive); 90 annotation ( Documentation(info="<html>90 annotation (Library="ModelicaExternalC", Documentation(info="<html> 91 91 <h4>Syntax</h4> 92 92 <blockquote><pre> … … 1083 1083 output Real number "Value of Real number"; 1084 1084 external "C" ModelicaStrings_scanReal(string, startIndex, unsigned, nextIndex, number); 1085 annotation ( Documentation(info="<html>1085 annotation (Library="ModelicaExternalC",Documentation(info="<html> 1086 1086 <h4>Syntax</h4> 1087 1087 <blockquote><pre> … … 1131 1131 output Integer number "Value of Integer number"; 1132 1132 external "C" ModelicaStrings_scanInteger(string, startIndex, unsigned, nextIndex, number); 1133 annotation ( Documentation(info="<html>1133 annotation (Library="ModelicaExternalC",Documentation(info="<html> 1134 1134 <h4>Syntax</h4> 1135 1135 <blockquote><pre> … … 1176 1176 output String string2 "Value of String token"; 1177 1177 external "C" ModelicaStrings_scanString(string, startIndex, nextIndex, string2); 1178 annotation ( Documentation(info="<html>1178 annotation (Library="ModelicaExternalC",Documentation(info="<html> 1179 1179 <h4>Syntax</h4> 1180 1180 <blockquote><pre> … … 1212 1212 external "C" ModelicaStrings_scanIdentifier(string, startIndex, nextIndex, identifier); 1213 1213 1214 annotation ( Documentation(info="<html>1214 annotation (Library="ModelicaExternalC",Documentation(info="<html> 1215 1215 <h4>Syntax</h4> 1216 1216 <blockquote><pre> … … 1246 1246 output Integer nextIndex; 1247 1247 external "C" nextIndex = ModelicaStrings_skipWhiteSpace(string, startIndex); 1248 annotation ( Documentation(info="<html>1248 annotation (Library="ModelicaExternalC",Documentation(info="<html> 1249 1249 <h4>Syntax</h4> 1250 1250 <blockquote><pre> -
trunk/Modelica/Utilities/System.mo
r887 r1041 22 22 // POSIX function "getcwd" 23 23 external "C" directory = ModelicaInternal_getcwd(0); 24 annotation ( Documentation(info="<html>24 annotation (Library="ModelicaExternalC",Documentation(info="<html> 25 25 26 26 </html>")); … … 32 32 // POSIX function "chdir" 33 33 external "C" ModelicaInternal_chdir(directory); 34 annotation ( Documentation(info="<html>34 annotation (Library="ModelicaExternalC",Documentation(info="<html> 35 35 36 36 </html>")); … … 47 47 "= true, if environment variable exists; = false, if it does not exist"; 48 48 external "C" ModelicaInternal_getenv(name, convertToSlash, content, exist); 49 annotation ( Documentation(info="<html>49 annotation (Library="ModelicaExternalC",Documentation(info="<html> 50 50 51 51 </html>")); … … 59 59 "True, if '/' in content shall be changed to the native directory separator"; 60 60 external "C" ModelicaInternal_setenv(name, content, convertFromSlash); 61 annotation ( Documentation(info="<html>61 annotation (Library="ModelicaExternalC",Documentation(info="<html> 62 62 63 63 </html>")); … … 69 69 output Integer result "Return value from command (depends on environment)"; 70 70 external "C" result = system(string); 71 annotation ( Documentation(info="<html>71 annotation (Library="ModelicaExternalC",Documentation(info="<html> 72 72 73 73 </html>")); … … 79 79 "Result to be returned by environment (0 means success)"; 80 80 external "C" ModelicaInternal_exit(status); 81 annotation(Library="ModelicaExternalC"); 81 82 end exit; 82 83 end System; -
trunk/Modelica/Utilities/package.mo
r940 r1041 242 242 input String directoryName "Make a new directory"; 243 243 external "C" ModelicaInternal_mkdir(directoryName); 244 annotation(Library="ModelicaExternalC"); 244 245 end mkdir; 245 246 … … 248 249 input String directoryName "Empty directory to be removed"; 249 250 external "C" ModelicaInternal_rmdir(directoryName); 251 annotation(Library="ModelicaExternalC"); 250 252 end rmdir; 251 253 … … 255 257 output Types.FileType fileType "Type of file"; 256 258 external "C" fileType= ModelicaInternal_stat(name); 259 annotation(Library="ModelicaExternalC"); 257 260 end stat; 258 261 … … 262 265 input String newName "New name"; 263 266 external "C" ModelicaInternal_rename(oldName, newName); 267 annotation(Library="ModelicaExternalC"); 264 268 end rename; 265 269 … … 268 272 input String fileName "File to be removed"; 269 273 external "C" ModelicaInternal_removeFile(fileName); 274 annotation(Library="ModelicaExternalC"); 270 275 end removeFile; 271 276 … … 276 281 input String toName "Name of copy of file"; 277 282 external "C" ModelicaInternal_copyFile(fromName, toName); 283 annotation(Library="ModelicaExternalC"); 278 284 end copyFile; 279 285 … … 288 294 "All file and directory names in any order from the desired directory"; 289 295 external "C" ModelicaInternal_readDirectory(directory,nNames,names); 296 annotation(Library="ModelicaExternalC"); 290 297 end readDirectory; 291 298 … … 297 304 "Number of files and directories present in 'directory'"; 298 305 external "C" result = ModelicaInternal_getNumberOfFiles(directory); 306 annotation(Library="ModelicaExternalC"); 299 307 end getNumberOfFiles; 300 308
