mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 11:09:19 +02:00
+ introduce ttypeconvnodeflags (empty for now)
git-svn-id: trunk@38636 -
This commit is contained in:
parent
d8f8b9844f
commit
6ad786f8ef
@ -33,10 +33,18 @@ interface
|
|||||||
;
|
;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
ttypeconvnodeflag = (
|
||||||
|
tcnf_dummyflag { todo: remove this, when the first real typeconvnode
|
||||||
|
flag is added (this is just a dummy element, because
|
||||||
|
the enum cannot be empty) }
|
||||||
|
);
|
||||||
|
ttypeconvnodeflags = set of ttypeconvnodeflag;
|
||||||
|
|
||||||
ttypeconvnode = class(tunarynode)
|
ttypeconvnode = class(tunarynode)
|
||||||
totypedef : tdef;
|
totypedef : tdef;
|
||||||
totypedefderef : tderef;
|
totypedefderef : tderef;
|
||||||
convtype : tconverttype;
|
convtype : tconverttype;
|
||||||
|
convnodeflags : ttypeconvnodeflags;
|
||||||
warn_pointer_to_signed,
|
warn_pointer_to_signed,
|
||||||
assignment_side: boolean;
|
assignment_side: boolean;
|
||||||
constructor create(node : tnode;def:tdef);virtual;
|
constructor create(node : tnode;def:tdef);virtual;
|
||||||
@ -910,6 +918,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
inherited create(typeconvn,node);
|
inherited create(typeconvn,node);
|
||||||
convtype:=tc_none;
|
convtype:=tc_none;
|
||||||
|
convnodeflags:=[];
|
||||||
totypedef:=def;
|
totypedef:=def;
|
||||||
if def=nil then
|
if def=nil then
|
||||||
internalerror(200103281);
|
internalerror(200103281);
|
||||||
@ -967,6 +976,7 @@ implementation
|
|||||||
inherited ppuload(t,ppufile);
|
inherited ppuload(t,ppufile);
|
||||||
ppufile.getderef(totypedefderef);
|
ppufile.getderef(totypedefderef);
|
||||||
convtype:=tconverttype(ppufile.getbyte);
|
convtype:=tconverttype(ppufile.getbyte);
|
||||||
|
ppufile.getsmallset(convnodeflags);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -975,6 +985,7 @@ implementation
|
|||||||
inherited ppuwrite(ppufile);
|
inherited ppuwrite(ppufile);
|
||||||
ppufile.putderef(totypedefderef);
|
ppufile.putderef(totypedefderef);
|
||||||
ppufile.putbyte(byte(convtype));
|
ppufile.putbyte(byte(convtype));
|
||||||
|
ppufile.putsmallset(convnodeflags);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user