[fpc-pascal] StrToInt is using ShortString buffer?

Sven Barth pascaldragon at googlemail.com
Wed Jan 12 23:33:13 CET 2022


Bart via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am Mi., 12.
Jan. 2022, 22:31:

> On Wed, Jan 12, 2022 at 3:13 PM Michael Van Canneyt via fpc-pascal
> <fpc-pascal at lists.freepascal.org> wrote:
>
> > From the definition you can see it is a compilerproc function, meaning
> that the
> > compiler writes direct calls to this.
> > To change the signature of the function means the compiler itself also
> must be changed.
>
> Could you naybe point me to where in the compiler this "magic" happens?
> (fpc_Val_UInt_Shortstr() signature needs to be changed IMO)
>

You can see it in Florian's commit to the branch about range checking where
he added the DestSize parameter.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220112/ad3d39a2/attachment.htm>


More information about the fpc-pascal mailing list