Преглед на файлове

Merged revisions 753 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@754 -

Jonas Maebe преди 20 години
родител
ревизия
9866f19226
променени са 2 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. 7 0
      compiler/pdecl.pas
  2. 0 5
      compiler/pdecobj.pas

+ 7 - 0
compiler/pdecl.pas

@@ -421,6 +421,13 @@ implementation
            consume(_EQUAL);
            { support 'ttype=type word' syntax }
            unique:=try_to_consume(_TYPE);
+
+           { MacPas object model is more like Delphi's than like TP's, but }
+           { uses the object keyword instead of class                      }
+           if (m_mac in aktmodeswitches) and
+              (token = _OBJECT) then
+             token := _CLASS;
+
            { is the type already defined? }
            searchsym(typename,sym,srsymtable);
            newtype:=nil;

+ 0 - 5
compiler/pdecobj.pas

@@ -214,11 +214,6 @@ implementation
 
         begin
            readobjecttype:=true;
-           { MacPas object model is more like Delphi's than like TP's, but }
-           { uses the object keyword instead of class                      }
-           if (m_mac in aktmodeswitches) and
-              (token = _OBJECT) then
-             token := _CLASS;
            { distinguish classes and objects }
            case token of
               _OBJECT: