mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 03:06:34 +02:00
* allow enum(enum)
This commit is contained in:
parent
09cd7f1642
commit
87f83123d3
@ -1415,18 +1415,26 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if (def_from.deftype=enumdef) then
|
if (def_from.deftype=enumdef) then
|
||||||
begin
|
begin
|
||||||
hd1:=def_from;
|
if explicit then
|
||||||
while assigned(tenumdef(hd1).basedef) do
|
begin
|
||||||
hd1:=tenumdef(hd1).basedef;
|
b:=1;
|
||||||
hd2:=def_to;
|
doconv:=tc_int_2_int;
|
||||||
while assigned(tenumdef(hd2).basedef) do
|
end
|
||||||
hd2:=tenumdef(hd2).basedef;
|
else
|
||||||
if (hd1=hd2) then
|
begin
|
||||||
begin
|
hd1:=def_from;
|
||||||
b:=1;
|
while assigned(tenumdef(hd1).basedef) do
|
||||||
{ because of packenum they can have different sizes! (JM) }
|
hd1:=tenumdef(hd1).basedef;
|
||||||
doconv:=tc_int_2_int;
|
hd2:=def_to;
|
||||||
end;
|
while assigned(tenumdef(hd2).basedef) do
|
||||||
|
hd2:=tenumdef(hd2).basedef;
|
||||||
|
if (hd1=hd2) then
|
||||||
|
begin
|
||||||
|
b:=1;
|
||||||
|
{ because of packenum they can have different sizes! (JM) }
|
||||||
|
doconv:=tc_int_2_int;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1800,7 +1808,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.51 2001-10-22 15:13:49 jonas
|
Revision 1.52 2001-10-22 21:21:09 peter
|
||||||
|
* allow enum(enum)
|
||||||
|
|
||||||
|
Revision 1.51 2001/10/22 15:13:49 jonas
|
||||||
* allow typeconversion of open array-of-char to string
|
* allow typeconversion of open array-of-char to string
|
||||||
|
|
||||||
Revision 1.50 2001/10/20 19:28:39 peter
|
Revision 1.50 2001/10/20 19:28:39 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user