mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 12:10:25 +02:00
* changed the 'size' parameter of fpc_zeromem and fpc_fillmem from ptruint to sizeuint
git-svn-id: trunk@34741 -
This commit is contained in:
parent
a81d2b58f8
commit
e1792e712a
@ -238,7 +238,7 @@ implementation
|
|||||||
b.left:=cstatementnode.create(
|
b.left:=cstatementnode.create(
|
||||||
ccallnode.createintern('fpc_zeromem',
|
ccallnode.createintern('fpc_zeromem',
|
||||||
ccallparanode.create(
|
ccallparanode.create(
|
||||||
cordconstnode.create(vardef.size,ptruinttype,false),
|
cordconstnode.create(vardef.size,sizeuinttype,false),
|
||||||
ccallparanode.create(
|
ccallparanode.create(
|
||||||
caddrnode.create_internal(
|
caddrnode.create_internal(
|
||||||
cloadnode.create(tsym(p),tsym(p).owner)),
|
cloadnode.create(tsym(p),tsym(p).owner)),
|
||||||
|
@ -37,8 +37,8 @@ Procedure fpc_freemem(p:pointer);compilerproc;
|
|||||||
{$endif FPC_HAS_FEATURE_HEAP}
|
{$endif FPC_HAS_FEATURE_HEAP}
|
||||||
|
|
||||||
{ used by Default() in code blocks }
|
{ used by Default() in code blocks }
|
||||||
procedure fpc_zeromem(p:pointer;len:ptruint);inline;compilerproc;
|
procedure fpc_zeromem(p:pointer;len:sizeuint);inline;compilerproc;
|
||||||
procedure fpc_fillmem(out data;len:ptruint;b : byte);inline;compilerproc;
|
procedure fpc_fillmem(out data;len:sizeuint;b : byte);inline;compilerproc;
|
||||||
|
|
||||||
procedure fpc_Shortstr_SetLength(var s:shortstring;len:SizeInt); compilerproc;
|
procedure fpc_Shortstr_SetLength(var s:shortstring;len:SizeInt); compilerproc;
|
||||||
procedure fpc_shortstr_assign(len:{$ifdef cpu16}smallint{$else}longint{$endif};sstr,dstr:pointer); compilerproc;
|
procedure fpc_shortstr_assign(len:{$ifdef cpu16}smallint{$else}longint{$endif};sstr,dstr:pointer); compilerproc;
|
||||||
|
@ -335,13 +335,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure fpc_zeromem(p:pointer;len:ptruint);
|
procedure fpc_zeromem(p:pointer;len:sizeuint);
|
||||||
begin
|
begin
|
||||||
FillChar(p^,len,0);
|
FillChar(p^,len,0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure fpc_fillmem(out data;len:ptruint;b : byte);
|
procedure fpc_fillmem(out data;len:sizeuint;b : byte);
|
||||||
begin
|
begin
|
||||||
FillByte(data,len,b);
|
FillByte(data,len,b);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user