mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:49:20 +02:00
* allow assigning to loop control vars in macpas mode
git-svn-id: trunk@4956 -
This commit is contained in:
parent
5eedbdfde9
commit
5cad2321a9
@ -370,8 +370,8 @@ implementation
|
|||||||
(vo_is_thread_var in tabstractvarsym(tloadnode(hp).symtableentry).varoptions))
|
(vo_is_thread_var in tabstractvarsym(tloadnode(hp).symtableentry).varoptions))
|
||||||
) then
|
) then
|
||||||
begin
|
begin
|
||||||
{ Assigning for-loop variable is only allowed in tp7 }
|
{ Assigning for-loop variable is only allowed in tp7 and macpas }
|
||||||
if not(m_tp7 in aktmodeswitches) then
|
if ([m_tp7,m_mac] * aktmodeswitches = []) then
|
||||||
begin
|
begin
|
||||||
if not assigned(loopvarsym) then
|
if not assigned(loopvarsym) then
|
||||||
loopvarsym:=tabstractvarsym(tloadnode(hp).symtableentry);
|
loopvarsym:=tabstractvarsym(tloadnode(hp).symtableentry);
|
||||||
|
Loading…
Reference in New Issue
Block a user