mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 19:39:31 +02:00
* tdynarraytypeinfo moved to interface
* made aligntoptr inlined git-svn-id: trunk@630 -
This commit is contained in:
parent
fddf556098
commit
8dd52941d5
@ -24,16 +24,8 @@ type
|
||||
high : tdynarrayindex;
|
||||
end;
|
||||
|
||||
pdynarraytypeinfo = ^tdynarraytypeinfo;
|
||||
tdynarraytypeinfo = packed record
|
||||
kind : byte;
|
||||
namelen : byte;
|
||||
{ here the chars follow, we've to skip them }
|
||||
elesize : sizeint;
|
||||
eletype : pdynarraytypeinfo;
|
||||
end;
|
||||
|
||||
function aligntoptr(p : pointer) : pointer;
|
||||
function aligntoptr(p : pointer) : pointer;inline;
|
||||
begin
|
||||
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
if (ptrint(p) mod sizeof(ptrint))<>0 then
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
This file is part of the Free Pascal Run time library.
|
||||
Copyright (c) 1999-2000 by the Free Pascal development team
|
||||
Copyright (c) 1999-2005 by the Free Pascal development team
|
||||
|
||||
This file contains type declarations necessary for the dynamic
|
||||
array routine helpers in syshelp.inc
|
||||
@ -16,6 +16,15 @@
|
||||
**********************************************************************}
|
||||
|
||||
type
|
||||
tdynarrayindex = sizeint;
|
||||
pdynarrayindex = ^tdynarrayindex;
|
||||
tdynarrayindex = sizeint;
|
||||
pdynarrayindex = ^tdynarrayindex;
|
||||
|
||||
pdynarraytypeinfo = ^tdynarraytypeinfo;
|
||||
tdynarraytypeinfo = packed record
|
||||
kind : byte;
|
||||
namelen : byte;
|
||||
{ here the chars follow, we've to skip them }
|
||||
elesize : sizeint;
|
||||
eletype : pdynarraytypeinfo;
|
||||
vartype : longint;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user