mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:29:39 +02:00
* pas2jni: Properly handle enums with inline elements.
git-svn-id: trunk@29160 -
This commit is contained in:
parent
771f317f94
commit
830e3ceb0d
@ -424,7 +424,7 @@ var
|
|||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if CurObjName = '' then begin
|
if (CurObjName = '') and (d.DefType <> dtEnum) then begin
|
||||||
d.Free;
|
d.Free;
|
||||||
continue;
|
continue;
|
||||||
end;
|
end;
|
||||||
@ -530,6 +530,8 @@ var
|
|||||||
Base:=it.Integers['Base'];
|
Base:=it.Integers['Base'];
|
||||||
ElMax:=it.Integers['Max'];
|
ElMax:=it.Integers['Max'];
|
||||||
ElType:=TTypeDef(_GetRef(it.Objects['ElType'], TTypeDef));
|
ElType:=TTypeDef(_GetRef(it.Objects['ElType'], TTypeDef));
|
||||||
|
if (ElType <> nil) and (ElType.Name = '') then
|
||||||
|
ElType.Name:=CurObjName + 'El';
|
||||||
end;
|
end;
|
||||||
dtConst:
|
dtConst:
|
||||||
with TConstDef(d) do begin
|
with TConstDef(d) do begin
|
||||||
|
Loading…
Reference in New Issue
Block a user