mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 07:19:37 +02:00
* tprocdef.customprocname: fixed bug introduced in r21069 that was causing result to always contain 'procedure' or 'function' word. These should be included only if pno_proctypeoption flag is given. Resolves #24640.
git-svn-id: trunk@25126 -
This commit is contained in:
parent
2240c24252
commit
8b1463aedc
@ -4693,12 +4693,14 @@ implementation
|
||||
potype_destructor:
|
||||
s:=s+'destructor ';
|
||||
else
|
||||
if (pno_proctypeoption in pno) and
|
||||
assigned(returndef) and
|
||||
not(is_void(returndef)) then
|
||||
s:=s+'function '
|
||||
else
|
||||
s:=s+'procedure ';
|
||||
if (pno_proctypeoption in pno) then
|
||||
begin
|
||||
if assigned(returndef) and
|
||||
not(is_void(returndef)) then
|
||||
s:=s+'function '
|
||||
else
|
||||
s:=s+'procedure ';
|
||||
end;
|
||||
end;
|
||||
if (pno_ownername in pno) and
|
||||
(owner.symtabletype in [recordsymtable,objectsymtable]) then
|
||||
|
Loading…
Reference in New Issue
Block a user