mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-18 21:58:21 +02:00
* use voidcodepointertype when creating the methodpointertype in
psystem.create_intern_types; ifdef i8086 removed. git-svn-id: trunk@27541 -
This commit is contained in:
parent
e1716c097d
commit
b9af57b97a
@ -492,14 +492,7 @@ implementation
|
|||||||
addtype('$vtblarray',vmtarraytype);
|
addtype('$vtblarray',vmtarraytype);
|
||||||
{ Add a type for methodpointers }
|
{ Add a type for methodpointers }
|
||||||
hrecst:=trecordsymtable.create('',1);
|
hrecst:=trecordsymtable.create('',1);
|
||||||
{$ifdef i8086}
|
addfield(hrecst,cfieldvarsym.create('$proc',vs_value,voidcodepointertype,[]));
|
||||||
if current_settings.x86memorymodel in x86_far_code_models then
|
|
||||||
addfield(hrecst,cfieldvarsym.create('$proc',vs_value,voidfarpointertype,[]))
|
|
||||||
else
|
|
||||||
addfield(hrecst,cfieldvarsym.create('$proc',vs_value,voidnearpointertype,[]));
|
|
||||||
{$else i8086}
|
|
||||||
addfield(hrecst,cfieldvarsym.create('$proc',vs_value,voidpointertype,[]));
|
|
||||||
{$endif i8086}
|
|
||||||
addfield(hrecst,cfieldvarsym.create('$self',vs_value,voidpointertype,[]));
|
addfield(hrecst,cfieldvarsym.create('$self',vs_value,voidpointertype,[]));
|
||||||
methodpointertype:=crecorddef.create('',hrecst);
|
methodpointertype:=crecorddef.create('',hrecst);
|
||||||
addtype('$methodpointer',methodpointertype);
|
addtype('$methodpointer',methodpointertype);
|
||||||
|
Loading…
Reference in New Issue
Block a user