[fpc-devel]cdecl directive & fpc-devel archives...
XHajT03 at mbox.vol.cz
XHajT03 at mbox.vol.cz
Sat Oct 28 21:26:49 CEST 2000
Date sent: Sat, 28 Oct 2000 15:56:12 +0200
To: fpc-devel at deadlock.et.tudelft.nl
From: Florian Klaempfl <florian at klaempfl.de>
Subject: Re: [fpc-devel]cdecl directive & fpc-devel
archives...
Send reply to: fpc-devel at deadlock.et.tudelft.nl
> >the expansion of function name is up to 'external' not to 'cdecl'
> >directive.
> >
> >'cdecl' is just 'calling convention' not rule of making funciton
> >name.
>
> Hmm, but C has also rules how the names are mangled, so cdecl
> should also change the name.
On one hand you're making it difficult to use the C calling
convention for some internal routine. OK, I don't know a situation
when this might be useful at the moment, so fixing the compiler to
issue at least some warning message might be enough regarding this.
On the other hand the current implementation complicates (at least -
I don't really know whether it's even possible currently) creating a
routine with Pascal calling convention but a non-mangled name as
well.
Anyway, what about my question regarding the implementation in other
compilers (I mean mostly TPW and Delphi here)?
Tomas
More information about the fpc-devel
mailing list