mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 02:49:32 +01:00
* Give debug information once for each conditional directive
git-svn-id: trunk@20648 -
This commit is contained in:
parent
ff8e1afec1
commit
1c27730c8c
@ -1774,11 +1774,11 @@ In case not, the value returned can be arbitrary.
|
||||
if hs='LINE' then
|
||||
hs:=tostr(current_filepos.line)
|
||||
else
|
||||
if hs='LINENUM' then
|
||||
if hs='LINENUM' then
|
||||
begin
|
||||
hs:=tostr(current_filepos.line);
|
||||
macroIsString:=false;
|
||||
end
|
||||
end
|
||||
else
|
||||
if hs='FPCVERSION' then
|
||||
hs:=version_string
|
||||
@ -3005,6 +3005,7 @@ In case not, the value returned can be arbitrary.
|
||||
savetokenpos;
|
||||
repeat
|
||||
current_scanner.gettokenpos;
|
||||
Message1(scan_d_handling_switch,'$'+p.name);
|
||||
p.proc();
|
||||
{ accept the text ? }
|
||||
if (current_scanner.preprocstack=nil) or current_scanner.preprocstack.accept then
|
||||
@ -3021,7 +3022,6 @@ In case not, the value returned can be arbitrary.
|
||||
p:=tdirectiveitem(mac_scannerdirectives.Find(current_scanner.readid));
|
||||
until assigned(p) and (p.is_conditional);
|
||||
current_scanner.gettokenpos;
|
||||
Message1(scan_d_handling_switch,'$'+p.name);
|
||||
end;
|
||||
until false;
|
||||
restoretokenpos;
|
||||
@ -3066,6 +3066,7 @@ In case not, the value returned can be arbitrary.
|
||||
{ Check for compiler switches }
|
||||
while (length(hs)=1) and (c in ['-','+']) do
|
||||
begin
|
||||
Message1(scan_d_handling_switch,'$'+hs+c);
|
||||
HandleSwitch(hs[1],c);
|
||||
current_scanner.readchar; {Remove + or -}
|
||||
if c=',' then
|
||||
@ -3082,9 +3083,7 @@ In case not, the value returned can be arbitrary.
|
||||
end;
|
||||
if (hs='') then
|
||||
Message1(scan_w_illegal_directive,'$'+c);
|
||||
end
|
||||
else
|
||||
Message1(scan_d_handling_switch,'$'+hs);
|
||||
end;
|
||||
end
|
||||
else
|
||||
hs:='';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user