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

enable typed addresses {$T+} in fpc and objfpc mode

git-svn-id: trunk@4795 -
micha преди 19 години
родител
ревизия
bd6afce618
променени са 1 файла, в които са добавени 8 реда и са изтрити 6 реда
  1. 8 6
      compiler/scanner.pas

+ 8 - 6
compiler/scanner.pas

@@ -263,12 +263,14 @@ implementation
          if s='TP' then
           aktmodeswitches:=tpmodeswitches
         else
-         if s='FPC' then
-          aktmodeswitches:=fpcmodeswitches
-        else
-         if s='OBJFPC' then
-          aktmodeswitches:=objfpcmodeswitches
-        else
+         if s='FPC' then begin
+          aktmodeswitches:=fpcmodeswitches;
+          include(aktlocalswitches, cs_typed_addresses);
+        end else
+         if s='OBJFPC' then begin
+          aktmodeswitches:=objfpcmodeswitches;
+          include(aktlocalswitches, cs_typed_addresses);
+        end else
          if s='GPC' then
           aktmodeswitches:=gpcmodeswitches
         else