External: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | - | ||
| 1 | + | Back to [[Reserved words]]. | |
| 4 | 2 | ||
| 5 | - | ||
| 6 | - | ||
| 3 | + | ||
| 4 | + | The **external** modifier: | |
| 7 | 5 | ||
| 8 | - | ||
| 6 | + | * belongs to the calling conventions for external subroutines (eg dynamically loaded libraries); | |
| 7 | + | * allows access to an external subroutine. | |
| 9 | 8 | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 9 | + | ||
| 10 | + | Examples: | |
| 14 | 11 | ``` | |
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 12 | + | ... | |
| 13 | + | function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'Test.dll'; | |
| 14 | + | ... | |
| 20 | 15 | ``` | |
| 16 | + | ``` | |
| 17 | + | ... | |
| 18 | + | function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'test.dylib'; | |
| 19 | + | ... | |
| 20 | + | ``` | |
| 21 | 21 | ||
| 22 | 22 | --- | |
| 23 | - | ||
| 23 | + | *From the Free Pascal wiki, page "External", as the Internet Archive kept it on 2024-03-04. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
