Do not leave behind detritus from the spinner when using #pragma expand.

This could happen with the following example (under ORCA/Shell with output to the screen only):

#include <stdio.h>
#pragma expand 1

int main(void) {
}
This commit is contained in:
Stephen Heumann 2021-03-11 19:01:38 -06:00
parent c95d8d9f9b
commit 9cd2807bc8
1 changed files with 4 additions and 2 deletions

View File

@ -4418,8 +4418,10 @@ while charKinds[ord(ch)] in [illegal,ch_white,ch_eol] do begin
end {if}
else begin {skip white space}
if printMacroExpansions then
if charKinds[ord(ch)] = ch_eol then
writeln
if charKinds[ord(ch)] = ch_eol then begin
StopSpin;
writeln;
end {if}
else
write(ch);
NextCh;