- 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:
Jonas Maebe 2013-10-07 20:54:26 +00:00
parent 8fad859161
commit 9619ed8b4b
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);