Browse Source

* nicer output when column=0

peter 27 years ago
parent
commit
92e386c26f
1 changed files with 19 additions and 6 deletions
  1. 19 6
      compiler/comphook.pas

+ 19 - 6
compiler/comphook.pas

@@ -195,12 +195,22 @@ begin
       begin
       begin
         { Adding the column should not confuse RHIDE,
         { Adding the column should not confuse RHIDE,
         even if it does not yet use it PM }
         even if it does not yet use it PM }
-        if status.use_gccoutput then
-          hs:=gccfilename(status.currentsource)+':'+tostr(status.currentline)
-              +': '+hs+tostr(status.currentcolumn)+': '
+        if status.currentcolumn>0 then
+         begin
+           if status.use_gccoutput then
+             hs:=gccfilename(status.currentsource)+':'+tostr(status.currentline)
+                 +':'+tostr(status.currentcolumn)+': '+hs
+           else
+             hs:=status.currentsource+'('+tostr(status.currentline)
+                 +','+tostr(status.currentcolumn)+') '+hs;
+         end
         else
         else
-          hs:=status.currentsource+'('+tostr(status.currentline)
-              +','+tostr(status.currentcolumn)+') '+hs;
+         begin
+           if status.use_gccoutput then
+             hs:=gccfilename(status.currentsource)+':'+tostr(status.currentline)+': '+hs
+           else
+             hs:=status.currentsource+'('+tostr(status.currentline)+') '+hs;
+         end;
 {$ifdef Debug}
 {$ifdef Debug}
       end
       end
      else
      else
@@ -241,7 +251,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.5  1998-08-18 15:11:51  peter
+  Revision 1.6  1998-09-01 17:37:59  peter
+    * nicer output when column=0
+
+  Revision 1.5  1998/08/18 15:11:51  peter
     * recompiles again
     * recompiles again
 
 
   Revision 1.4  1998/08/18 14:17:08  pierre
   Revision 1.4  1998/08/18 14:17:08  pierre