[fpc-pascal] pchar with more than 255 characters

Rainer Stratmann RainerStratmann at t-online.de
Wed Nov 16 18:22:28 CET 2011


Am Wednesday 16 November 2011 17:15:51 schrieb Felipe Monteiro de Carvalho:
> On Tue, Nov 15, 2011 at 11:33 AM, Jonas Maebe <jonas.maebe at elis.ugent.be> 
wrote:
> > length(pchar) is translated into strlen(pchar) (just like in Delphi).
>
> But why is it limited to 255 chars in {$H-} ? (I understood that it is
> limited like this from the original poster)

Exactly.
Why?

Now I changed all string vars (aprox. 1250) to shortstring and the string[..] 
vars remain the same as before.

So now I can remove the swith -Sh- from additional compiler arguments/flags.
And now it is possible again (like in the compiler versions before) to put 
more than 255 chars incombination with a pchar.



More information about the fpc-pascal mailing list