[fpc-pascal] Re: pchar with more than 255 characters
Rainer Stratmann
RainerStratmann at t-online.de
Sun Nov 13 14:02:18 CET 2011
Am Sunday 13 November 2011 02:15:07 schrieb leledumbo:
> It works when {$LONGSTRINGS ON} or {$H+} directive exists. I think the
> compiler treats functions receiving array of char (or pointer to it) as
> ShortString when none of the directives above exist.
No it does not work then.
I put already the -Sh- additional compiler arg.
For me it seems like a bug, because in the previous version of FPC (2-2-4.3)
it works. It seems that the compiler now cuts every constant string in the
sourcecode to 255 characters.
More information about the fpc-pascal
mailing list