|
@@ -147,7 +147,6 @@ unit pstatmnt;
|
|
else
|
|
else
|
|
if (p^._low>hcaselabel^._low) and
|
|
if (p^._low>hcaselabel^._low) and
|
|
(p^._low>hcaselabel^._high) then
|
|
(p^._low>hcaselabel^._high) then
|
|
-{$IfDef CaseRange}
|
|
|
|
if (hcaselabel^.statement = p^.statement) and
|
|
if (hcaselabel^.statement = p^.statement) and
|
|
(p^._low = hcaselabel^._high + 1) then
|
|
(p^._low = hcaselabel^._high + 1) then
|
|
begin
|
|
begin
|
|
@@ -155,12 +154,10 @@ unit pstatmnt;
|
|
dispose(hcaselabel)
|
|
dispose(hcaselabel)
|
|
end
|
|
end
|
|
else
|
|
else
|
|
-{$EndIf CaseRange}
|
|
|
|
insertlabel(p^.less)
|
|
insertlabel(p^.less)
|
|
else
|
|
else
|
|
if (p^._high<hcaselabel^._low) and
|
|
if (p^._high<hcaselabel^._low) and
|
|
(p^._high<hcaselabel^._high) then
|
|
(p^._high<hcaselabel^._high) then
|
|
-{$IfDef CaseRange}
|
|
|
|
if (hcaselabel^.statement = p^.statement) and
|
|
if (hcaselabel^.statement = p^.statement) and
|
|
(p^._high+1 = hcaselabel^._low) then
|
|
(p^._high+1 = hcaselabel^._low) then
|
|
begin
|
|
begin
|
|
@@ -168,7 +165,6 @@ unit pstatmnt;
|
|
dispose(hcaselabel)
|
|
dispose(hcaselabel)
|
|
end
|
|
end
|
|
else
|
|
else
|
|
-{$EndIf CaseRange}
|
|
|
|
insertlabel(p^.greater)
|
|
insertlabel(p^.greater)
|
|
else Message(parser_e_double_caselabel);
|
|
else Message(parser_e_double_caselabel);
|
|
end;
|
|
end;
|
|
@@ -1246,7 +1242,10 @@ unit pstatmnt;
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.54 1998-12-15 22:32:24 jonas
|
|
|
|
|
|
+ Revision 1.55 1998-12-16 12:30:59 jonas
|
|
|
|
+ * released CaseRange
|
|
|
|
+
|
|
|
|
+ Revision 1.54 1998/12/15 22:32:24 jonas
|
|
+ convert consecutive case labels to a single range (-dCaseRange)
|
|
+ convert consecutive case labels to a single range (-dCaseRange)
|
|
|
|
|
|
Revision 1.53 1998/12/15 11:52:18 peter
|
|
Revision 1.53 1998/12/15 11:52:18 peter
|