mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 03:10:46 +02:00
* Char -> AnsiChar
This commit is contained in:
parent
9d9df104b9
commit
6032bd09ba
@ -334,7 +334,7 @@ function IndexWord(const buf: array of jchar;len:SizeInt;b:jshort):SizeInt;
|
|||||||
|
|
||||||
{$define FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
{$define FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
||||||
|
|
||||||
function fpc_pchar_length(p:pchar):sizeint;[public,alias:'FPC_PCHAR_LENGTH']; compilerproc;
|
function fpc_pchar_length(p:PAnsiChar):sizeint;[public,alias:'FPC_PCHAR_LENGTH']; compilerproc;
|
||||||
begin
|
begin
|
||||||
if assigned(p) then
|
if assigned(p) then
|
||||||
Result:=IndexByte(TAnsiCharArray(p),high(Result),0)
|
Result:=IndexByte(TAnsiCharArray(p),high(Result),0)
|
||||||
@ -344,7 +344,7 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
{$define FPC_SYSTEM_HAS_FPC_PCHAR_TO_SHORTSTR}
|
{$define FPC_SYSTEM_HAS_FPC_PCHAR_TO_SHORTSTR}
|
||||||
procedure fpc_pchar_to_shortstr(out res : shortstring;p:pchar); compilerproc;
|
procedure fpc_pchar_to_shortstr(out res : shortstring;p:PAnsiChar); compilerproc;
|
||||||
var
|
var
|
||||||
i, len: longint;
|
i, len: longint;
|
||||||
arr: TAnsiCharArray;
|
arr: TAnsiCharArray;
|
||||||
|
Loading…
Reference in New Issue
Block a user