diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2016-04-29 15:03:18 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2016-04-29 15:03:18 +0000 |
commit | c5556ff15bce17f28d29c76cf7434d90f9159cf3 (patch) | |
tree | 96c152d32795015d0d628c21139bd50db75706c9 /compiler/export.pas | |
parent | aef23d63367524621e0cac350dcf132f9b1c446f (diff) | |
download | fpc-c5556ff15bce17f28d29c76cf7434d90f9159cf3.tar.gz |
New export option that enforces the use of the provided export name instead of using the name of the provided symbol. This is necessary to correctly handle overloaded functions, especially if one of them is an internproc one.
export.pas:
+ texportoption: new option eo_no_sym_name
pkgutil.pas:
* exportprocsym: set eo_no_sym_name when exporting procdefs from a package
systems/t_win.pas, TExportLibWin:
* generatelib: respect eo_no_sym_name
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@33574 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/export.pas')
-rw-r--r-- | compiler/export.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/export.pas b/compiler/export.pas index d3363b9119..416fc63c59 100644 --- a/compiler/export.pas +++ b/compiler/export.pas @@ -36,7 +36,8 @@ type texportoption=(eo_none, eo_resident, eo_index, - eo_name + eo_name, + eo_no_sym_name { don't try to use another mangled name if symbol is known } ); texportoptions=set of texportoption; |