mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 09:59:29 +02:00
* the pointer parameter of fpc_Read_Text_PChar_As_Pointer is not an
out parameter, but a const (the pointer is const and must be valid already) git-svn-id: trunk@2486 -
This commit is contained in:
parent
1e47e5a2db
commit
0e2a5dde24
@ -194,7 +194,7 @@ procedure fpc_vararray_put(var d : variant;const s : variant;indices : psizeint;
|
||||
Procedure fpc_Read_End(var f:Text); compilerproc;
|
||||
Procedure fpc_ReadLn_End(var f : Text); compilerproc;
|
||||
Procedure fpc_Read_Text_ShortStr(var f : Text;out s : String); compilerproc;
|
||||
Procedure fpc_Read_Text_PChar_As_Pointer(var f : Text;out s : PChar); compilerproc;
|
||||
Procedure fpc_Read_Text_PChar_As_Pointer(var f : Text; const s : PChar); compilerproc;
|
||||
Procedure fpc_Read_Text_PChar_As_Array(var f : Text;out s : array of char); compilerproc;
|
||||
Procedure fpc_Read_Text_AnsiStr(var f : Text;out s : AnsiString); compilerproc;
|
||||
Procedure fpc_Read_Text_Char(var f : Text; out c : char); compilerproc;
|
||||
|
@ -947,7 +947,7 @@ Begin
|
||||
End;
|
||||
|
||||
|
||||
Procedure fpc_Read_Text_PChar_As_Pointer(var f : Text;out s : PChar); iocheck; [Public,Alias:'FPC_READ_TEXT_PCHAR_AS_POINTER']; compilerproc;
|
||||
Procedure fpc_Read_Text_PChar_As_Pointer(var f : Text; const s : PChar); iocheck; [Public,Alias:'FPC_READ_TEXT_PCHAR_AS_POINTER']; compilerproc;
|
||||
Begin
|
||||
pchar(s+ReadPCharLen(f,s,$7fffffff))^:=#0;
|
||||
End;
|
||||
|
Loading…
Reference in New Issue
Block a user