aboutsummaryrefslogtreecommitdiffstats
path: root/src/files_map.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-11-16 20:46:09 +0100
committerTristan Gingold <tgingold@free.fr>2018-11-16 20:46:09 +0100
commitad252b4268f855b7df53092826b6f6a57ce4c4e3 (patch)
treea78850bb3cd642048db6bc38ebf16dd1a75af567 /src/files_map.ads
parent9624f0ce08849f8cf14fe81416496417b4754d9d (diff)
downloadghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.tar.gz
ghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.tar.bz2
ghdl-ad252b4268f855b7df53092826b6f6a57ce4c4e3.zip
errorout: split and rework.
Diffstat (limited to 'src/files_map.ads')
-rw-r--r--src/files_map.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/files_map.ads b/src/files_map.ads
index 7d23f45c6..0c2fc7aad 100644
--- a/src/files_map.ads
+++ b/src/files_map.ads
@@ -186,6 +186,16 @@ package Files_Map is
Line : out Natural;
Offset : out Natural);
+ -- Convert a physical column to a logical column.
+ -- A physical column is the offset in byte from the first byte of the line.
+ -- A logical column is the position of the character when displayed.
+ -- A HT (tabulation) moves the cursor to the next position multiple of the
+ -- tab stop.
+ -- The first character is at position 1 and at offset 0.
+ function Coord_To_Col (File : Source_File_Entry;
+ Line_Pos : Source_Ptr;
+ Offset : Natural) return Natural;
+
-- Translate coordinate into logical position.
-- NAME is the name of the file,
-- COL is the column (first character is 1, tabulation are at every 8