Browse Source

* $WARN $PUSH/$POP support

git-svn-id: trunk@17866 -
pierre 14 years ago
parent
commit
1a262bee80
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/scandir.pas

+ 5 - 0
compiler/scandir.pas

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