Explorar el Código

* disabled maybe_call_procvar() again for macpas mode, because it breaks
CodeWarrior compatibility in a more prominent way than failure to
compile webtbs/tw17379a.pp (-> added %knowncompileerror)

git-svn-id: trunk@15976 -

Jonas Maebe hace 15 años
padre
commit
7f489635da
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      compiler/nutils.pas
  2. 1 0
      tests/webtbs/tw17379a.pp

+ 1 - 1
compiler/nutils.pas

@@ -357,7 +357,7 @@ implementation
         result:=false;
         if (p1.resultdef.typ<>procvardef) or
            (tponly and
-            ([m_tp_procvar,m_mac_procvar] * current_settings.modeswitches = [])) then
+            not(m_tp_procvar in current_settings.modeswitches)) then
           exit;
         { ignore vecn,subscriptn }
         hp:=p1;

+ 1 - 0
tests/webtbs/tw17379a.pp

@@ -1,3 +1,4 @@
+{%KNOWNCOMPILEERROR=CodeWarrior Pascal is sometimes similar to and sometimes different from TP/Delphi regarding calling procvars }
 {$mode macpas}
 
 program tmacfunret;