mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 22:30:30 +02:00
* use paramanager.push_copyout_param() instead of duplicated/hardcoded logic
to determine whether a parameter will be wrapped via an array or not in tprocdef.jvmmangledbasename() git-svn-id: branches/jvmbackend@18689 -
This commit is contained in:
parent
8fcc88d763
commit
b526505bbf
@ -4661,10 +4661,7 @@ implementation
|
||||
does achieve regular call-by-reference semantics though;
|
||||
formaldefs always have to be passed like that because their
|
||||
contents can be replaced }
|
||||
if ((vs.vardef.typ=formaldef) and
|
||||
(vs.varspez<>vs_const)) or
|
||||
((vs.varspez in [vs_var,vs_out,vs_constref]) and
|
||||
not jvmimplicitpointertype(vs.vardef)) then
|
||||
if paramanager.push_copyout_param(vs.varspez,vs.vardef,proccalloption) then
|
||||
tmpresult:=tmpresult+'[';
|
||||
{ Add the parameter type. }
|
||||
if not jvmaddencodedtype(vs.vardef,false,tmpresult,signature,founderror) then
|
||||
|
Loading…
Reference in New Issue
Block a user