Sfoglia il codice sorgente

* $WARN $PUSH/$POP support

git-svn-id: trunk@17866 -
pierre 14 anni fa
parent
commit
1a262bee80
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      compiler/scandir.pas

+ 5 - 0
compiler/scandir.pas

@@ -35,6 +35,7 @@ unit scandir;
       tsavedswitchesstate = record
         localsw: tlocalswitches;
         verbosity: longint;
+        pmessage : pmessagestaterecord;
       end;
 
     type
@@ -944,6 +945,9 @@ unit scandir;
       Dec(switchesstatestackpos);
       recordpendinglocalfullswitch(switchesstatestack[switchesstatestackpos].localsw);
       recordpendingverbosityfullswitch(switchesstatestack[switchesstatestackpos].verbosity);
+      pendingstate.nextmessagerecord:=switchesstatestack[switchesstatestackpos].pmessage;
+      RestoreLocalVerbosity(nil);
+      flushpendingswitchesstate;
     end;
 
     procedure dir_pointermath;
@@ -970,6 +974,7 @@ unit scandir;
       flushpendingswitchesstate;
 
       switchesstatestack[switchesstatestackpos].localsw:= current_settings.localswitches;
+      switchesstatestack[switchesstatestackpos].pmessage:= current_settings.pmessage;
       switchesstatestack[switchesstatestackpos].verbosity:=status.verbosity;
       Inc(switchesstatestackpos);
     end;