mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 05:06:03 +02:00
- undo hack from r25713
* fix maybe_parse_hint_directives() when it is called multiple times for a procdef that has a deprecation message specified (fixes crashes reported in #25101/#25165) git-svn-id: trunk@25719 -
This commit is contained in:
parent
8fad859161
commit
9619ed8b4b
@ -2483,7 +2483,7 @@ const
|
|||||||
_UNIMPLEMENTED,
|
_UNIMPLEMENTED,
|
||||||
_EXPERIMENTAL,
|
_EXPERIMENTAL,
|
||||||
_DEPRECATED :
|
_DEPRECATED :
|
||||||
if ([m_delphi,m_objectivec1] * current_settings.modeswitches = [m_delphi]) and (pd.typ=procdef) then
|
if (m_delphi in current_settings.modeswitches) and (pd.typ=procdef) then
|
||||||
maybe_parse_hint_directives(tprocdef(pd))
|
maybe_parse_hint_directives(tprocdef(pd))
|
||||||
else
|
else
|
||||||
exit;
|
exit;
|
||||||
|
@ -103,7 +103,8 @@ implementation
|
|||||||
if assigned(pd) then
|
if assigned(pd) then
|
||||||
begin
|
begin
|
||||||
pd.symoptions:=pd.symoptions+dummysymoptions;
|
pd.symoptions:=pd.symoptions+dummysymoptions;
|
||||||
pd.deprecatedmsg:=deprecatedmsg;
|
if sp_has_deprecated_msg in dummysymoptions then
|
||||||
|
pd.deprecatedmsg:=deprecatedmsg;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
stringdispose(deprecatedmsg);
|
stringdispose(deprecatedmsg);
|
||||||
|
Loading…
Reference in New Issue
Block a user