Discussion:
[fpc-devel] CriticalSection functions differ from Delphi
Ondrej Pokorny
2016-08-05 21:22:54 UTC
Permalink
CriticalSection function names differ from Delphi:

Delphi - FPC
InitializeCriticalSection <> InitCriticalSection
EnterCriticalSection "=" EnterCriticalsection
LeaveCriticalSection "=" LeaveCriticalsection
DeleteCriticalSection <> DoneCriticalsection

Is there any reason for it? Is there a will to rename them in order to
get Delphi-compatibility?

(+ FPC char case isn't consistent.)

Ondrej

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Jonas Maebe
2016-08-05 21:33:10 UTC
Permalink
Post by Ondrej Pokorny
Delphi - FPC
InitializeCriticalSection <> InitCriticalSection
EnterCriticalSection "=" EnterCriticalsection
LeaveCriticalSection "=" LeaveCriticalsection
DeleteCriticalSection <> DoneCriticalsection
Is there any reason for it?
The "Delphi" names are the names of the Windows API calls. You can also
use them in FPC to call the Windows APIs. The FPC names are the names of
cross-platform functions that are supported on all platforms.


Jonas
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Loading...