Allow using less horizontal space in TUI source window
[deliverable/binutils-gdb.git] / gdb / tui / tui-winsource.h
index 7c3c626add16cfd47b384cc1bea1bcae5dfb261b..8b9620034feafe01c5fabffde2a3cd25dea5b74f 100644 (file)
@@ -238,12 +238,16 @@ extern void tui_update_source_windows_with_line (struct symtab *,
 /* Extract some source text from PTR.  LINE_NO is the line number.  If
    it is positive, it is printed at the start of the line.  FIRST_COL
    is the first column to extract, and LINE_WIDTH is the number of
-   characters to display.  Returns a string holding the desired text.
-   PTR is updated to point to the start of the next line.  */
+   characters to display.  NDIGITS is used to format the line number
+   (if it is positive).  If NDIGITS is greater than 0, then that many
+   digits are used; otherwise the line number is formatted with 6
+   digits and the text is aligned to the next tab stop.  Returns a
+   string holding the desired text.  PTR is updated to point to the
+   start of the next line.  */
 
 extern std::string tui_copy_source_line (const char **ptr,
                                         int line_no, int first_col,
-                                        int line_width);
+                                        int line_width, int ndigits);
 
 /* Constant definitions. */
 #define SCROLL_THRESHOLD 2     /* Threshold for lazy scroll.  */
This page took 0.025142 seconds and 4 git commands to generate.