diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-09-27 15:40:52 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-09-27 15:40:52 +0000 |
commit | 713a76900ac5dba4a1b8511ba664f11981cca6f3 (patch) | |
tree | 12bd14ea67409e4c768d37ae1be7bc66d1f966fb /compiler/export.pas | |
parent | 8d15f141aa377f12d9df512f30103b0ae9bee241 (diff) | |
download | fpc-713a76900ac5dba4a1b8511ba664f11981cca6f3.tar.gz |
+ support for exporting Objective-C classes from dynamic libraries. It works
the same as for exporting functions/procedures and variables: add the name
of the class to the "exports" section of the library. By default, classes
are only visible inside a shared library.
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13765 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/export.pas')
-rw-r--r-- | compiler/export.pas | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/export.pas b/compiler/export.pas index 3df578a4f9..d363d7434a 100644 --- a/compiler/export.pas +++ b/compiler/export.pas @@ -73,6 +73,9 @@ type procedure exportprocsym(sym: tsym; const s : string; index: longint; options: word); procedure exportvarsym(sym: tsym; const s : string; index: longint; options: word); + { to export symbols not directly related to a tsym (e.g., the Objective-C + rtti) } + procedure exportname(const s : string; options: word); procedure exportallprocdefnames(sym: tprocsym; pd: tprocdef; options: word); procedure exportallprocsymnames(ps: tprocsym; options: word); @@ -122,6 +125,12 @@ procedure exportvarsym(sym: tsym; const s : string; index: longint; options: wor end; +procedure exportname(const s : string; options: word); + begin + exportvarsym(nil,s,0,options); + end; + + procedure exportallprocdefnames(sym: tprocsym; pd: tprocdef; options: word); var item: TCmdStrListItem; |