mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
- removed the RtlInfoType record, because it is only used only once in a local
variable. Use an anonymous record instead.
This commit is contained in:
parent
6cd88575c6
commit
0ead28c1e0
@ -69,13 +69,6 @@ Uses
|
||||
--- Link C Lib if set ---
|
||||
******************************************************************************}
|
||||
|
||||
type
|
||||
RtlInfoType = Record
|
||||
FMode: LongInt;
|
||||
FSize: __wasi_filesize_t;
|
||||
FMTime: __wasi_timestamp_t;
|
||||
End;
|
||||
|
||||
|
||||
{******************************************************************************
|
||||
--- Info / Date / Time ---
|
||||
@ -427,10 +420,14 @@ End;
|
||||
Function FindGetFileInfo(const s:string;var f:SearchRec):boolean;
|
||||
var
|
||||
DT : DateTime;
|
||||
Info : RtlInfoType;
|
||||
st : __wasi_filestat_t;
|
||||
fd : __wasi_fd_t;
|
||||
pr : RawByteString;
|
||||
Info : record
|
||||
FMode: LongInt;
|
||||
FSize: __wasi_filesize_t;
|
||||
FMTime: __wasi_timestamp_t;
|
||||
end;
|
||||
begin
|
||||
FindGetFileInfo:=false;
|
||||
if ConvertToFdRelativePath(s,fd,pr)<>0 then
|
||||
|
Loading…
Reference in New Issue
Block a user