[Lazarus] Disabling wrapper functions, define DisableWrapperFunctions

Juha Manninen juha.manninen62 at gmail.com
Tue Jul 7 20:00:49 CEST 2015


Hello

Units FileUtil in LazUtils, FileProcs in Codetools and LCLProc in LCL
have wrappers for functions in other units.
This is partly because many functions have been moved to LazUtils
package over time.

I have put the wrappers inside an {$IFnDEF DisableWrapperFunctions}.
In some future release they will be removed.

All component, package and application developers, please compile your
code with define DisableWrapperFunctions.
I hope CCR code authors can do this, too.
Build Lazarus itself by setting the define in Configure Build Lazarus dialog.
For applications use the "Additions and Overrides" and add a Custom
Option -dDisableWrapperFunctions.

Fix uses sections as needed. Function names have not changed, only the
units to use.
The sooner all code can be fixed the better.

Juha




More information about the Lazarus mailing list