2
0
Эх сурвалжийг харах

* Fixed unreachable code warnings.

git-svn-id: trunk@11445 -
yury 17 жил өмнө
parent
commit
2f5d8b0381

+ 1 - 0
compiler/globtype.pas

@@ -416,6 +416,7 @@ interface
 
 
        pfileposinfo = ^tfileposinfo;
        pfileposinfo = ^tfileposinfo;
        tfileposinfo = record
        tfileposinfo = record
+         { if types of column or fileindex are changed, modify tcompilerppufile.putposinfo }
          line      : longint;
          line      : longint;
          column    : word;
          column    : word;
          fileindex : word;
          fileindex : word;

+ 6 - 0
compiler/symtype.pas

@@ -890,6 +890,8 @@ implementation
         { calculate info byte }
         { calculate info byte }
         if (p.fileindex>$ff) then
         if (p.fileindex>$ff) then
          begin
          begin
+           info:=info or $1;
+           { uncomment this code if tfileposinfo.fileindex type was changed
            if (p.fileindex<=$ffff) then
            if (p.fileindex<=$ffff) then
             info:=info or $1
             info:=info or $1
            else
            else
@@ -897,6 +899,7 @@ implementation
              info:=info or $2
              info:=info or $2
            else
            else
             info:=info or $3;
             info:=info or $3;
+           }
           end;
           end;
         if (p.line>$ff) then
         if (p.line>$ff) then
          begin
          begin
@@ -910,6 +913,8 @@ implementation
           end;
           end;
         if (p.column>$ff) then
         if (p.column>$ff) then
          begin
          begin
+           info:=info or $10;
+           { uncomment this code if tfileposinfo.column type was changed
            if (p.column<=$ffff) then
            if (p.column<=$ffff) then
             info:=info or $10
             info:=info or $10
            else
            else
@@ -917,6 +922,7 @@ implementation
              info:=info or $20
              info:=info or $20
            else
            else
             info:=info or $30;
             info:=info or $30;
+           }
           end;
           end;
         { write data }
         { write data }
         putbyte(info);
         putbyte(info);