mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-25 13:29:38 +02:00
* add info that a procedure is local in error messages
This commit is contained in:
parent
46dbff9c93
commit
4631658576
@ -1195,6 +1195,10 @@ implementation
|
|||||||
if (pd.owner.symtabletype=objectsymtable) then
|
if (pd.owner.symtabletype=objectsymtable) then
|
||||||
include(tprocvardef(resulttype.def).procoptions,po_methodpointer);
|
include(tprocvardef(resulttype.def).procoptions,po_methodpointer);
|
||||||
|
|
||||||
|
{ was it a local procedure? }
|
||||||
|
if (pd.owner.symtabletype=localsymtable) then
|
||||||
|
include(tprocvardef(resulttype.def).procoptions,po_local);
|
||||||
|
|
||||||
{ only need the address of the method? this is needed
|
{ only need the address of the method? this is needed
|
||||||
for @tobject.create. In this case there will be a loadn without
|
for @tobject.create. In this case there will be a loadn without
|
||||||
a methodpointer. }
|
a methodpointer. }
|
||||||
@ -2579,7 +2583,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.174 2005-01-09 15:04:36 peter
|
Revision 1.175 2005-01-30 11:26:40 peter
|
||||||
|
* add info that a procedure is local in error messages
|
||||||
|
|
||||||
|
Revision 1.174 2005/01/09 15:04:36 peter
|
||||||
* fix crash with -CR
|
* fix crash with -CR
|
||||||
|
|
||||||
Revision 1.173 2005/01/07 21:14:21 florian
|
Revision 1.173 2005/01/07 21:14:21 florian
|
||||||
|
@ -259,7 +259,8 @@ type
|
|||||||
po_syscall_sysv,
|
po_syscall_sysv,
|
||||||
po_syscall_basesysv,
|
po_syscall_basesysv,
|
||||||
po_syscall_sysvbase,
|
po_syscall_sysvbase,
|
||||||
po_syscall_r12base
|
po_syscall_r12base,
|
||||||
|
po_local
|
||||||
);
|
);
|
||||||
tprocoptions=set of tprocoption;
|
tprocoptions=set of tprocoption;
|
||||||
|
|
||||||
@ -440,7 +441,10 @@ initialization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.100 2005-01-09 20:24:43 olle
|
Revision 1.101 2005-01-30 11:26:40 peter
|
||||||
|
* add info that a procedure is local in error messages
|
||||||
|
|
||||||
|
Revision 1.100 2005/01/09 20:24:43 olle
|
||||||
* rework of macro subsystem
|
* rework of macro subsystem
|
||||||
+ exportable macros for mode macpas
|
+ exportable macros for mode macpas
|
||||||
|
|
||||||
|
@ -3983,6 +3983,8 @@ implementation
|
|||||||
showhidden:=true;
|
showhidden:=true;
|
||||||
{$endif EXTDEBUG}
|
{$endif EXTDEBUG}
|
||||||
s:='';
|
s:='';
|
||||||
|
if owner.symtabletype=localsymtable then
|
||||||
|
s:=s+'local ';
|
||||||
if assigned(_class) then
|
if assigned(_class) then
|
||||||
begin
|
begin
|
||||||
if po_classmethod in procoptions then
|
if po_classmethod in procoptions then
|
||||||
@ -4846,6 +4848,8 @@ implementation
|
|||||||
s := s+'address of'
|
s := s+'address of'
|
||||||
else
|
else
|
||||||
s := s+'procedure variable type of';
|
s := s+'procedure variable type of';
|
||||||
|
if po_local in procoptions then
|
||||||
|
s := s+' local';
|
||||||
if assigned(rettype.def) and
|
if assigned(rettype.def) and
|
||||||
(rettype.def<>voidtype.def) then
|
(rettype.def<>voidtype.def) then
|
||||||
s:=s+' function'+typename_paras(showhidden)+':'+rettype.def.gettypename
|
s:=s+' function'+typename_paras(showhidden)+':'+rettype.def.gettypename
|
||||||
@ -6367,7 +6371,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.291 2005-01-24 22:08:32 peter
|
Revision 1.292 2005-01-30 11:26:40 peter
|
||||||
|
* add info that a procedure is local in error messages
|
||||||
|
|
||||||
|
Revision 1.291 2005/01/24 22:08:32 peter
|
||||||
* interface wrapper generation moved to cgobj
|
* interface wrapper generation moved to cgobj
|
||||||
* generate interface wrappers after the module is parsed
|
* generate interface wrappers after the module is parsed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user