Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2016-08

CriticalSection functions differ from Delphi

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

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

Reply by email

Jonas Maebe
to Ondrej Pokorny
Ondrej Pokorny wrote 9 lines
CriticalSection function names differ from Delphi: 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

Reply by email