[fpc-devel]I suggest a new FPC feature

Peter Vreman peter at freepascal.org
Mon Oct 15 08:46:27 CEST 2001

> > > 1) Is my $calling patch interesting for you?
> > 
> > I'm not yet convinced of it's usefullness. Do not forget that we're
> > trying to be cross-platform, which means that we should keep in mind
> > conventions on other OS-es, such as Unix.
>  I'm not sure this is a good reason to avoid the patch. In contrary, 
> I even think it's one more reason for it. The more platforms 
> supported, the higher can grow the amount of needed calling 
> conventions (for example, we'd need support for "far 16 pascal" 
> calling convention for some OS/2 libraries :-( ). If you create an 
> interface unit for some 3rd party (or system) library, you could add 
> one global parameter at the top and stop being afraid of forgetting 
> one "cdecl" in the list of 367 ( ;-) ) function declarations.

I also think that a $calling directive can be added. It can also be used for C import
files or win32 DLL export

More information about the fpc-devel mailing list